[css-d] 'Reverse' adjacent sibling selector?

2010-10-01 Thread Daniel Baars
Hello, Is there a way in CSS to match a first element which is the PREVIOUS sibling to the second element? Example: I want to target the paragraph before every header. h2Header/h2 pFirst paragraph/p pLast paragraph/p !-- I want to style this paragraph -- h2Another header/h2 After quite a bit

Re: [css-d] 'Reverse' adjacent sibling selector?

2010-10-01 Thread Michal Čizmazia
Hi, Daniel, the best I can come up with is to target the last child in the following markup. div.section p:last-child {} div class=section h2Header/h2 pFirst paragraph/p pLast paragraph/p /div div class=section h2Another header/h2 /div I suggest you to have a

Re: [css-d] 'Reverse' adjacent sibling selector?

2010-10-01 Thread Ryan
CSS does not navigate in reverse. You would need xpath, JavaScript, or modified HTML structure for what you have described. On Oct 1, 2010, at 5:29 AM, Daniel Baars i...@danielbaars.nl wrote: Hello, Is there a way in CSS to match a first element which is the PREVIOUS sibling to the second

Re: [css-d] 'Reverse' adjacent sibling selector?

2010-10-01 Thread Theresa Newman
why not add a class to the p tag? and style with css? On Fri, Oct 1, 2010 at 1:08 PM, Ryan nun...@gmail.com wrote: CSS does not navigate in reverse. You would need xpath, JavaScript, or modified HTML structure for what you have described. On Oct 1, 2010, at 5:29 AM, Daniel Baars

Re: [css-d] 'Reverse' adjacent sibling selector?

2010-10-01 Thread MEM
+1 Tim: Have a look here: http://archivist.incutio.com/viewlist/css-discuss/112698 Regards, Márcio __ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ --

Re: [css-d] Trouble with overflow:hidden and absolute hover elements

2010-10-01 Thread Manfred Rebentisch
Hi David, Am Monday 27 September 2010 21:20:31 schrieb David Hucklesby: I'm guessing that the AP help is partly outside the DIV that has overflow: hidden; on it? I'm also guessing you are using overflow in order to contain floats. With these bold assumptions, I suggest using something other