[thelist] Multi-Colored Drop-Down possible?

Erik Goodlad erik at stirlingbridge.com
Thu Mar 29 17:47:01 CST 2001


>>>
I've got a client asking if we can make the options in a drop-down select
box different colors based on some criteria.
>>>

Using Style Sheets you can give each item in a drop down list a back ground
color.

<style type="text/css">
.bg1{background-color:FF0000}
.bg2{background-color:00FF00}
.bg3{background-color:0000FF}
</style>

<form action="" method="post">
<select name="foo">
	<option class="bg1">red</option>
	<option class="bg2">green</option>
	<option class="bg3">blue</option>
</select>
</form>

Hope that's a good start for you.


Erik Goodlad
_________________________________________
The Stirling Bridge Group, LLC
*We Engineer Internet Business Solutions*
TEL: (949) 707-1534   FAX: (949) 707-1535





More information about the thelist mailing list