Name
:first-line — IE4 N/N | IE5 N/Y | NN4 N/N | Op3 Y/-
Synopsis
Applies styles to the first line of an element. The styles are applied even if the window is resized; the text is simply restyled to encompass only the first line of the element.
Example
P:first-line {color: red;} <P>The first line of this paragraph is red. blah blah blah...</P>
Values
n/a
Default
n/a
Inherited
yes
Applies to
block
Get Cascading Style Sheets: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.