Edwin van der Vaart <pi************ @yahoo.co.uk>:
.listheader {
color: #FFFFFF;
background: #000000;
}
.listdata {
color: #000000;
background: #FFFF66;
<select>
<option selected>Beers of the World</option>
<option class="listhead er">Campbelltow n</option>
<option class="listdata "> - Springbank 21 yr.</option>
<option class="listdata "> - Springbank 15 yr.</option>
<option class="listdata "> - Springbank 12 yr. </option>
<option class="listdata "> - Glen Scotia </option>
<option class="listhead er">Highland</option>
<option class="listdata "> - Royal Lochnager Selected Reserve </option>
<option class="listdata "> - Oban 14 yr. </option>
<option class="listdata "> - Lock Dhu Black 10 yr. </option>
<option class="listdata "> - Highland Park 12 yr.</option>
<option class="listdata "> - Glenmorangie 1971 Vintage. </option>
</select>
Eek! More like:
optgroup {
color: #FFF;
background: #000;
}
option {
color: #000;
background: #FF6;
}
<fieldset><lege nd>Beers of the World</legend><select multiple>
<optgroup label="Campbell town">
<option value="sb21">Sp ringbank 21 yr.</option>
<option value="sb15">Sp ringbank 15 yr.</option>
<option value="sb12">Sp ringbank 12 yr.</option>
<option value="glsc">Gl en Scotia</option>
</optgroup>
<optgroup label="Highland ">
<option value="rlsr">Ro yal Lochnager Selected Reserve</option>
<option value="ob14">Ob an 14 yr.</option>
<option value="ldb10">L ock Dhu Black 10 yr.</option>
<option value="hp12">Hi ghland Park 12 yr.</option>
<option value="gm71">Gl enmorangie 1971 Vintage.</option>
</optgroup>
</fieldset></select>
Of course CSS conforming UAs do not have to style form widgets and some
indeed choose not to or only to a certain degree.
P.S.: 21-year-old beer?
--
No sig today, my .sig has gone away
The divider stands forlorn, a symbol of the dawn
No sig today, it seems a common sight
But people reading by don't know the reason why