CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 62 of 182 | |
Testing | Date | Revision |
Descendant combinator (ID #43) | 2001-11-05 | 1.1 |
This paragraph should have a green background
This paragraph should have a green background |
This paragraph should be unstyled. |
.white { background-color: transparent ! important; } .red { background-color: red; } div.t1 p { background-color: lime; }
<div class="t1"> <p class="red">This paragraph should have a green background</p> <table> <tbody> <tr> <td> <p class="red">This paragraph should have a green background</p> </td> </tr> </tbody> </table> </div> <table> <tbody> <tr> <td> <p class="white">This paragraph should be unstyled.</p> </td> </tr> </tbody> </table>