CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 68 of 182 | |
Testing | Date | Revision |
Direct adjacent combinator (ID #45) | 2001-11-05 | 1.1 |
This paragraph should be unstyled.
But this one should have a green background.
And this one should also have a green background.
This address is only here to fill some space between two paragraphs.This paragraph should be unstyled.
.red { background-color : red } div.stub > p + p { background-color : lime }
<div class="stub"> <p>This paragraph should be unstyled.</p> <p class="red">But this one should have a green background.</p> <p class="red">And this one should also have a green background.</p> <address>This address is only here to fill some space between two paragraphs.</address> <p>This paragraph should be unstyled.</p> </div>