CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 86 of 153 of the static tests category | |
Testing | Date | Revision |
NEGATED :first-child pseudo-class (ID #77) | 2004-03-03 | 1.1 |
1.1 | green cell | green cell |
2.1 | green cell | green cell |
3.1 | green cell | green cell |
This paragraph should be unstyled.
.red { background-color : red } .t1 td:not(:first-child) { background-color : lime } p > *:not(:first-child) { background-color : lime } table.t1 td { border : thin black solid }
<div> <table class="t1" border="1"> <tr> <td>1.1</td> <td class="red">green cell</td> <td class="red">green cell</td> </tr> <tr> <td>2.1</td> <td class="red">green cell</td> <td class="red">green cell</td> </tr> <tr> <td>3.1</td> <td class="red">green cell</td> <td class="red">green cell</td> </tr> </table> </div> <p>This paragraph <span>should be</span> unstyled.</p>