::firstline (:firstline) CSS: Cascading Style Sheets .
The ::firstline CSS pseudoelement applies styles to the first line of a blocklevel 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.