SitePoint
Reference
CSS
Selector Reference
Pseudo-elements
:first-line
CSS Live Demo: :first-line
(this page)
See also:
All Live Demos
CSS Live Demo: :first-line
Type your
CSS
here:
(any properties allowed except expression, behavior and @import)
p:first-line { font-size:1.5em; font-style:normal; } p { font-style:italic; font-family:georgia,serif; color:#336; }
Type your
HTML
here:
(any tags allowed except script, iframe, frame, object, img and embed)
<p><q>And in case it crossed your mind to wonder, as I can see how it possibly might, I am completely sane. Which is why I call myself Wonko the Sane, just to reassure people on this point. Wonko is what my mother called me when I was a kid and clumsy and knocked things over, and sane is what I am, and how I intend to remain.</q></p>
Show me!
Your results appear here: