::first-line

The ::first-line pseudo-class applies styles to the first line of a block-level element. Note that the length of the first line depends on many factors, including the width of the element, the width of the document, and the font size of the text.

Syntax



element:first-line {
  property: value;
}