CSS ::first-line Selector

Last Updated Jul 21, 2015, 12:00:06 PM





CSS ::first-line Selector

CSS ::first-line selector is used to add a style to the first line of the specified selector.

Syntax

Example

Select and style the first line of every <p> element:


Watch GIF Try It Now

CSS Before Selector

CSS Selectors Reference

CSS Selectors Reference

Other CSS Selectors you might want to learn

CSS Basic Selectors

CSS Combinators



Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM