CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 70 of 78 | |
Testing | Date | Revision |
NEGATED :only-child pseudo-class (ID #81) | 11-july-2001 | 1.0 |
This paragraph should have a green background
This paragraph should NOT have a green background
.red { background-color : red } p:not(:only-child) { background-color : lime } div.testText > div > p { margin-left : 1em }
<p class="red">This paragraph should have a green background</p> <div>This div contains only one paragraph <p>This paragraph should NOT have a green background</p> </div>