Philip Taylor wrote:
> In that case, can you not style individual options via their "value"
> attributes [1] ?
>
> For example :
>
> <STYLE type="text/css">
> #query option {width: some fixed width [2]}
> #query option[value="12S"] {text-align: left}
> #query option[value="13S"] {text-align: right}
> </STYLE>
Sorry, copied and pasted wrong attribute values; that should have read :
> <STYLE type="text/css">
> #query option {width: some fixed width [2]}
> #query option[value="1"] {text-align: left}
> #query option[value="2"] {text-align: right}
> </STYLE>
Larry Martell wrote :
> In my example, in the first option, I would need 12S left justified
> and by_target right justified.
Ah, more complex, and somewhat harder (perhaps impossible); in the
absence of any distinguishing markup around "12S" and "by_target",
you would have to try to target "first-word". Maybe something
along the lines of :
<STYLE type="text/css">
#query option {text-align: right; width: some fixed width [2]}
#query option::first-word {text-align: left} or
#query option::first-word {float: left}
</STYLE>
Also untested.
Philip Taylor
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/