Avoid these 5 beginner CSS mistakes

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI22 min

About this video

Kevin Powell walks through common mistakes beginners make in CSS, including collapsing margins, over-reliance on positioning, containing blocks, overusing flex and grid, named colors, and using IDs as selectors. It is aimed at people who are learning to write CSS.

What you’ll learn

  • Predict how collapsing margins affect spacing between elements
  • Choose between positioning, flexbox and grid for a layout
  • Pick color and selector approaches that are easier to maintain