Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Select element

Reply
Thread Tools

Select element

 
 
Fabri
Guest
Posts: n/a
 
      07-08-2005
Is it possible to assign a different color in a select multiple?

<select multiple>
<option>Here I would like red</option>
<option>Here I would like different color</option>
</select>


Any help much appreciated.

Regards.

--
Fabri
-Mandrake "A Poma', c'hai 'na faccia...!"
-Pomata "Sì, se ce n'avevo due già stavo all'università... sotto
spirito!"
 
Reply With Quote
 
 
 
 
Philip Ronan
Guest
Posts: n/a
 
      07-08-2005
"Fabri" wrote:

> Is it possible to assign a different color in a select multiple?
>
> <select multiple>
> <option>Here I would like red</option>
> <option>Here I would like different color</option>
> </select>


Not reliably, no. The following might work in a few browsers:

<HEAD>
:
<STYLE type="text/css">
.red { color: #f00; }
.blue { color: #00f; }
</STYLE>
:
</HEAD>
<BODY>
:
<select multiple>
<option class="red">Here I would like red</option>
<option class="blue">Here I would like different color</option>
</select>

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to Update/insert an xml element's text----> (<element>text</element>) HANM XML 2 01-29-2008 03:31 PM
The element 'compilation' has invalid child element 'compilers'. =?Utf-8?B?Um9iZXJ0?= ASP .Net 3 11-15-2005 01:48 AM
moving from form element to form element Rod Snyder ASP .Net 1 05-29-2004 01:55 PM
per the active schema, the element <BR> must be included within a parent element MSNews ASP .Net 1 04-22-2004 04:45 PM
select of select box will select multiple in another box palmiere Javascript 1 02-09-2004 01:11 PM



Advertisments