CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 72 of 182 | |
Testing | Date | Revision |
Indirect adjacent combinator (ID #46b) | 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
.green { background-color : lime ! important } div.stub > p ~ p { background-color : red }
<div class="stub"> <p>This paragraph should be unstyled.</p> <p class="green">But this one should have a green background</p> <p class="green">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="green">This paragraph should have a green background</p> </div>