CSS ::before Selector

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





CSS ::before Selector

The CSS ::before selector works similar to the css ::after selector, but the only difference is it adds the text before the paragraph.

The ::before selector inserts content before the selected element.

Syntax
Example

Watch GIF Try It Now

CSS After 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