Click to See Complete Forum and Search --> : font color


sandy1028
02-04-2008, 12:22 AM
In this code the font color is mentioned as red but the color is not chaned.

How to make the font color red.



<option value=\"\" state="disabled"><font color="#FF0000">$d</font></option>

NogDog
02-04-2008, 01:10 AM
<option value=\"\" state="disabled" style="color:#FF0000;">$d</option>

I've never tried this in conjuction with a disabled element, so I'm not 100% sure it will work, just 99.8% sure.

FYI, the <font> tag has been deprecated for some time now in favor of using CSS for visual presentation issues.

Weedpacket
02-04-2008, 05:07 AM
I don't think <font> has ever worked inside an <option> element (in fact, no element is allowed inside an <option>).

But like NogDog said, this is why we have CSS:the <font> tag has been deprecated for some time nowAbout a decade; that's, what, an Internet lifetime?