Master CSS ::before & ::after Pseudo-Elements | Creative Styling

CSSnippets on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering4 min

About this video

Shows how the CSS ::before and ::after pseudo-elements add generated content, gradients, borders, underlines and hover effects to a page without extra HTML. Aimed at front-end developers, web designers and CSS beginners.

What you’ll learn

  • Add decorative content to elements with the ::before and ::after pseudo-elements and the content property
  • Create custom list bullets, gradient borders and underline effects with pure CSS
  • Build hover transitions and animated buttons, then inspect pseudo-elements in Dev Tools