Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Karl DeSaulniers
On Jan 19, 2014, at 6:03 PM, Larry Martell wrote: > On Sun, Jan 19, 2014 at 4:41 PM, MiB wrote: >> >> jan 19 2014 21:38 Larry Martell : >> >>> In my example, in the first option, I would need 12S left justified >>> and by_target right justified. >> >> >> You’re very likely to need a javascr

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 4:41 PM, MiB wrote: > > jan 19 2014 21:38 Larry Martell : > >> In my example, in the first option, I would need 12S left justified >> and by_target right justified. > > > You’re very likely to need a javascript solution, I think. There is one > discussion concerning this p

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread MiB
jan 19 2014 21:38 Larry Martell : > In my example, in the first option, I would need 12S left justified > and by_target right justified. You’re very likely to need a javascript solution, I think. There is one discussion concerning this problem here: http://stackoverflow.com/questions/4497688/

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread MiB
19 jan 2014 kl. 21:47 skrev Philip Taylor : > first-word is not a functional nor valid css pseudo element, is it? So…? __ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FA

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 2:44 PM, John D wrote: > I don't know if this is going to work but worth a try and adapt it for your > situation: > > First the HTML: > > Left id="first-word-right">Right > > Now the CSS: > > #first-word-left { > float: left; > } > #first-word-right { > float: right

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Philip Taylor
John D wrote: > I don't know if this is going to work but worth a try and adapt it for > your situation: > > First the HTML: > > Left id="first-word-right">Right John, Larry does not have access to the HTML, only to the CSS ... Philip Taylor __

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread John D
I don't know if this is going to work but worth a try and adapt it for your situation: First the HTML: LeftRight Now the CSS: #first-word-left { float: left; } #first-word-right { float: right; } Of course, Id can be replaced by a class if you have many left and right items. > I a

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Philip Taylor
Larry Martell wrote: > I appreciate your efforts. Is there any way I can use the text of each > option? I know the set of values that I want to be right aligned will > be one of (by_target, by_tool, by_recipe, by_ppl) and if it's not one > of those I want it left aligned. Can't think how that m

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 1:53 PM, Philip Taylor wrote: > > > Philip Taylor wrote: > >> >> #query option {text-align: right; width: some fixed width [2]} >> #query option::first-word {text-align: left} or >> #query option::first-word {float: left} >> > > Nope, won't work. There

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Jukka K. Korpela
2014-01-19 22:47, Philip Taylor wrote: 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"

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Philip Taylor
Philip Taylor wrote: > > #query option {text-align: right; width: some fixed width [2]} > #query option::first-word {text-align: left} or > #query option::first-word {float: left} > Nope, won't work. There is, as yet, no "::first-word" selector. I give up. Philip Taylor __

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Philip Taylor
Philip Taylor wrote: > In that case, can you not style individual options via their "value" > attributes [1] ? > > For example : > > > #query option {width: some fixed width [2]} > #query option[value="12S"] {text-align: left} > #query option[value="13S"] {text-align: right}

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 1:22 PM, Philip Taylor wrote: > > > Larry Martell wrote: > >> > autocomplete="off" class=""> >> Group >> >> >> 12S by_target >> 13S by_target >> [...] >> PPL1 by_ppl >> PPL2 by_ppl > > In that case, can you not style individual options via their "value" > attributes [1] ?

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Philip Taylor
Larry Martell wrote: > autocomplete="off" class=""> > Group > > > 12S by_target > 13S by_target > [...] > PPL1 by_ppl > PPL2 by_ppl In that case, can you not style individual options via their "value" attributes [1] ? For example : #query option {width: some fixed width [2]}

Re: [css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 12:48 PM, Philip Taylor wrote: > I think we need to /see/ the "select list" (i.e., the > raw HTML emitted by whatever it is over which you have > no control) in order to be able to offer suggestions ... Group 12S by_target 13S by_target 22SOI by_target TEST by_target TE

[css-d] How to align one word left and another word right in a select list without giving each its own class, div or style (and without using a monospace font)

2014-01-19 Thread Larry Martell
I have the need to align one word left and another word right in a select list. If had direct control over the HTML I could do this: LEFTRIGHT' But the select list is being generated by something I have no control over. My only way of styling this is by accessing the selector: #query select[name