CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 110 of 180 | |
Testing | Date | Revision |
:contains() pseudo-class (ID #84b) | 2001-11-12 | 1.1 |
This paragraph should have a green background.
.green { background-color : lime } div.stub *:contains("agree") { background-color : red }
<div class="stub"> <p class="green">This paragraph should have a green background.</p> <ul class="green"> <li>This list should also have a</li> <li>green background throughout.</li> </ul> </div>