CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 34 of 78 | |
Testing | Date | Revision |
:last-of-type pseudo-class (ID #35) | 11-july-2001 | 1.0 |
.red { background-color : red } address { margin-bottom : 1em ; margin-left : 1em } address:last-of-type { background-color : lime }
<div> <address>A first address with normal background</address> <address>A second address with normal background</address> <address class="red">A third address that should have a green background</address> and this div contains 3 addresses.</div>