It applies a special style to the first line of a text. In the example below, the style rules format the paragraph's first line of text. The first line's length depends on the size of the browser window or containing element. The CSS properties that you can apply to the ::first-line pseudo-element are: background properties, font properties, letter spacing, word-spacing, color, text-decoration, text-transform, vertical-align, line-height.