Re: Post for list
by "Ches" <ches(at)io.com>
|
Date: |
Tue, 17 Feb 2004 11:49:03 -0600 (CST) |
To: |
hwg-style(at)hwg.org |
References: |
inforamp |
|
todo: View
Thread,
Original
|
|
In your style sheet define option.
option {
color: white;
}
or you could just make the classes you need:
.Optionred {
color: red;
}
.Optionblue {
color: blue;
}
and so on ....
then instead of style="blah blah" you can put class="Optionred", etc.
Phil Mahon said:
> I have an unordered list that I write out using asp.
> So one particular item in the list has the 'selected' attribute.
> But, in addition, as I write the list, some of the members of the list are
> in default so their list item is written in red.
>
> Example:
> <select style="font-size: smaller;" name="InspectorAssigned" size="4" >
> <option value="0">--select an inspector --</option>
> <option value="100" >100 : Patrick McX </option>
> <option style="color: red;" value="212" >212 : Brian WXX </option>
> <option style="color: red;" value="214" >214 : Matthew HGG </option>
> <option style="color: red;" value="217" >217 : John OEE </option>
> <option value="225" >225 : Cliff HWW </option>
> <option value="228" >228 : Douglas MSS </option>
> <option style="color: red;" value="243" >243 : Gary SSS </option>
> <option value="246" selected="selected" >246 : Richard BCC </option>
> <option style="color: red;" value="247" >247 : Rick McCCC </option>
> </select>
>
> ..so you get the drift.
> But if the item is BOTH selected and red, then the selected bar shows blue
> and the font color is white. That's not what I want.
>
> Is there some style I an apply to the WHOLE list that when the item is
> selected, (either initially or by the operator), that the color stays red
> if
> it were set red?
>
> (Interested only in IE5.5+)
>
> Thanks PhilM
>
Ches
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA