Improve your CSS by Keepin' it DRY

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI20 min

About this video

A walkthrough of the Don't Repeat Yourself principle in CSS, with practical examples of reducing repeated code and a button hover effect to try. It is aimed at people who already write HTML and CSS.

What you’ll learn

  • Reduce repeated CSS rules by reusing shared declarations
  • Apply DRY principles to keep stylesheets faster to write
  • Build a button hover effect in CSS