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 #172778 is a reply to message #172777] Tue, 01 March 2011 00:23 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On 28/02/11 23:33, Captain Paralytic wrote:

>>> <select>
>>> <option>Black_text (yellow_text)</option>
>>> </select>

>> It's impossible. The only one thing that you can try is to emulate
>> select/options by javascript, but it's not easy

> It's impossible is it. I wish you'd told me that before I actually did
> it last year for a client of mine. Now I guess I'll have to tell them
> that they can't use it any more because it is now impossible!

OPs requirement is to have more than 1 colour of text in a single
option. Your solution applies a single colour to the whole of the option.

I would have thought span would work, but it seems it doesn't from the
OPs post, and my own testing confirms that span is not permitted within
option according to the validator, which means applying different styles
to parts of the option text is, at best, problematical

Rgds

Denis McMahon
[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: Wed Nov 27 05:59:06 GMT 2024

Total time taken to generate the page: 0.04475 seconds