CSS Before and After pseudo elements explained - part three: as design elements

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI22 min

About this video

A CSS tutorial showing how to use the ::before and ::after pseudo elements to add decorative design flourishes to headlines and a hover effect without extra markup. It suits developers and designers who already write some CSS.

What you’ll learn

  • Add decorative headline flourishes using ::before and ::after
  • Build a subtle hover effect without adding empty divs
  • Apply pseudo elements to create design details in CSS