Friday, November 14, 2008

How to add RGB color values for select box or a DIV tag

Following code will show you two exapmles on how to add RGB color values to a Select DropDown Box and a DIV tag.


<select name="colors">
<option style="background-color:rgb(200,250,300);">Color 1</option>
<option style="background-color:rgb(100,89,200);">Color 2</option>
<option style="background-color:rgb(65,89,50);">Color 2</option>


<br /><br />

<div style="background-color:rgb(200,100,100);">Hello</div>


Get Free Sinhala IT Learning Videos

Get custom programming done at!

No comments:

Post a Comment