Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

varying colors of text in a selection box

Status
Not open for further replies.

codeweaver

Programmer
Jun 20, 2001
1
US
Is there a way to make some option items in a selection box one color and others a different color. For example to change the color of one of the options to yellow to "highlight" it?
 
Just set a style for the option:
<select>
<option style=&quot;color: brown;&quot;>Brown</option>
<option style=&quot;color: yellow;&quot;>Yellow</option>
</select>

This won't work in NN4...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top