CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 37 of 65 of the static tests category | |
Testing | Date | Revision |
Direct adjacent combinator (ID #45) | 11-july-2001 | 1.0 |
This paragraph should NOT have a green background
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 paragraphsThis paragraph should NOT have a green background
.red { background-color : red } div.stub > p + p { background-color : lime }
<div class="stub"> <p>This paragraph should NOT have a green background</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 NOT have a green background</p> </div>