FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » HTML select field where the OPTION text is of different colors
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: HTML select field where the OPTION text is of different colors [message #172760 is a reply to message #172758] Mon, 28 February 2011 08:50 Go to previous messageGo to previous message
Andy is currently offline  Andy
Messages: 8
Registered: March 2002
Karma:
Junior Member
"venky_lb" <lb(dot)venky(at)gmail(dot)com> wrote in message
news:126b4778-ace0-4a04-8a8c-0d2ec2793234(at)k10g2000prh(dot)googlegroups(dot)com...
> Hi
>
> Is it possible to have an HTML select field where the OPTION text is
> of different colors?
>
> <select>
> <option>Black_text (yellow_text)</option>
> </select>
>
> I tried using an CSS SPAN element to color the text but that doesn't
> seem to work.
>
> Any ideas?
>

<select>
<option>one</option>
<option style="color: #ff6666; background: #336633">two</option>
<option>three</option>
</select>

Hope this helps

Andy
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with attaching file (from a form) to email in PHP
Next Topic: Parsing Error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 23:34:25 GMT 2024

Total time taken to generate the page: 0.04683 seconds