On Sun, Jan 19, 2014 at 1:22 PM, Philip Taylor <[email protected]> wrote:
>
>
> Larry Martell wrote:
>
>> <form id="query" method="GET" action="/report/CDSEM/MeasurementData/"
>> autocomplete="off" class="">
>> <label for="id_group">Group</label>
>> <select id="id_group" name="group">
>> <option value="" selected="selected"></option>
>> <option value="1">12S by_target</option>
>> <option value="2">13S by_target</option>
>> [...]
>> <option value="8">PPL1 by_ppl</option>
>> <option value="9">PPL2 by_ppl</option>
>
> 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>
>
> Caveat lector : untested !
> Philip Taylor
> --------
> [1] http://www.w3.org/TR/CSS2/selector.html#matching-attrs
> [2] sufficient to see the difference between left- and right-
>     justified labels of maximum width

In my example, in the first option, I would need 12S left justified
and by_target right justified.
______________________________________________________________________
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/

Reply via email to