CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 145 of 182 | |
Testing | Date | Revision |
:first-line with ::first-line (ID #167a) | 2001-01-01 | 1.0 |
The first line of this paragraph should have a green background.
p::first-line { background-color: red; } p:first-line { background-color: lime; }
<p>The first line of this paragraph should have a green background.</p>