CSS 3 Module | <== Test # ==> | |
---|---|---|
W3C Selectors | 124 of 153 of the static tests category | |
Testing | Date | Revision |
:first-letter with ::first-letter (ID #166) | 2001-01-01 | 1.0 |
The first letter of this paragraph should have a green background.
p:first-letter { background-color: red; } p::first-letter { background-color: lime; }
<p>The first letter of this paragraph should have a green background.</p>