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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color Coding Select Options

Status
Not open for further replies.

mgifford

Programmer
Joined
Jun 3, 2004
Messages
30
Location
US
Can I color code options in a drop down box in the Response.Write. I tried this but it doesn't work:

Response.Write " <select name=status id=status>"
Response.Write " <font color='0000FF'><option value='Open'>Open"
Response.Write " <font color='008000'><option value='In Progress'>In Progress"
Response.Write " <font color='000080'><option value='Closed'>Closed"
Response.Write " </select>"

Is this possible?
 
Have you tried at least to use the </font> tag at the end of each option line ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Thanks for the suggestion but I tried that and they are still all black. Any other thoughts?
 
color='0000FF'
Don't sure about the syntax.
Just to see what happens, try to use named color, like color='blue'

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hello mqifford,

Use style like this.
Response.Write " <option value='Open' style='color:#0000FF'>Open"
etc...

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top