Select element

F

Fabri

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.
 
P

Philip Ronan

Fabri said:
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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top