Re: HTML select field where the OPTION text is of different colors [message #172773 is a reply to message #172767] |
Mon, 28 February 2011 16:47 |
The Natural Philosoph
Messages: 993 Registered: September 2010
Karma:
|
Senior Member |
|
|
gemoroy(at)gmail(dot)com wrote:
> On Feb 28, 9:52 am, venky_lb <lb.ve...@gmail.com> wrote:
>> 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?
>
> It's impossible. The only one thing that you can try is to emulate
> select/options by javascript, but it's not easy
+1.
Option boxes are generally OS dependent, and very browser specific.
You don't need a LOT of javascript to generate a flyout menu with
colours, but you do need SOME.
Whether its an acceptable compromise, is up to the exact situation.
|
|
|