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
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
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
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
+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 --
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