Skip to content

Glossary: CSS Layout and Responsive Design

::before / ::after (pseudo-elements)

Also written: ::before, ::after, pseudo-element, pseudo-elements

Extra boxes that CSS can add before or after an element's content without any extra HTML. Kettle & Crane uses `::after` for the "New" badge and the dotted leader line on the menu.

Where the book teaches it

Related terms

contentPseudo-class