CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 62 of 153 of the static tests category | |
Testing | Date | Revision |
Indirect adjacent combinator (ID #46) | 2001-11-12 | 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 paragraphsThis paragraph should have a green background
.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 class="red">This paragraph should have a green background</p> </div>