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.


<body>

<select name="colors">
<option>Select</option>
<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>

</select>

<br /><br />

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

</body>


Get Free Sinhala IT Learning Videos Kuppiya.com


Get custom programming done at GetAFreelancer.com!

No comments:

Post a Comment