CSS Before and After pseudo elements explained - part two: the content property

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI25 min

About this video

A CSS tutorial showing practical uses of the content property with ::before and ::after pseudo elements, including markup-free tooltips, icon and text decorations, and CSS counters styled as circles and ordered lists.

What you’ll learn

  • Create a markup-free tooltip with ::before and ::after and the content property
  • Insert text, quotes and icons into a page with CSS pseudo elements
  • Build numbered lists and circled counters with CSS counters