| CSS 3 Module | <== Test # ==> | |
|---|---|---|
| W3C Selectors | 45 of 78 | |
| Testing | Date | Revision |
| Indirect adjacent combinator (ID #46) | 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 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 class="red">This paragraph should have a green background</p>
</div>