Re: [css-d] Selecting from sibling elements

2008-02-02 Thread Zach Shepherd
I'd suggest reading up on sibling selectors ( http://www.w3.org/TR/REC-CSS2/selector.html#adjacent-selectors, http://www.456bereastreet.com/archive/200510/css_21_selectors_part_2/). I believe (someone jump in if I'm giving bad advice), that it could be accomplished using something like what is belo

Re: [css-d] Selecting from sibling elements

2008-02-02 Thread Thierry Koblentz
> Suppose that I have something like: > > One > Two > Three > > Is there some way (without assigning a class) that I can structure a > selector so as to select only the second paragraph? Thanks for any > input. You could use: p:first-child + p {...} but it won't work in all browsers -- Regar

[css-d] Selecting from sibling elements

2008-02-02 Thread Doug Jolley
Suppose that I have something like: One Two Three Is there some way (without assigning a class) that I can structure a selector so as to select only the second paragraph? Thanks for any input. ... doug __ css-discuss [EM