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