CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 59 of 153 of the static tests category | |
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>