Forum Moderators: phranque

Message Too Old, No Replies

List Menu

         

yllai

6:41 am on Jan 4, 2007 (gmt 0)

10+ Year Member



I create a List menu in my form. It have 3 selection: Red, Blue, Yellow. Now, I want the text in the list display with color. For example: Red- Red text will display with red font, Blue- Blue text will display in blue font....can it be done? anyone can help?

Corey Bryant

12:36 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you referring to something like
<ul>
<li><span style="color: #FF0000">red</span></li>
<li><span style="color: #0000FF">blue</span></li>
<li><span style="color: #FFFF00">yellow</span></li>
</ul>

-Corey

yllai

1:14 am on Jan 5, 2007 (gmt 0)

10+ Year Member



Nope. I mean for drop down menu. When I click the arrow, it will show a list of option...for 'Red'...display in red font, for 'Blue'...display in blue font...

Anyone can help?

yllai

1:40 am on Jan 5, 2007 (gmt 0)

10+ Year Member



I tried as below:
<select name="select1">
<option value="Red"><font color="FF0000">Red</font></option>
<option value="Blue">"><font color="0000FF">Blue</font></option>
</select>

But it didn't show me the result. Anyone can help?

Corey Bryant

2:42 pm on Jan 5, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might try styles but as far as I can remember it cannot be done yet because of the type of dropdown that it is. (I cannot remember the name of it just yet - but I am sure someone knows.)

-Corey

coopster

5:28 pm on Jan 5, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



multicolor Listbox [webmasterworld.com]