What they got WRONG with CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI12 min

About this video

Kevin Powell walks through a list of CSS features that work in surprising or unhelpful ways, including box-sizing, collapsing margins, z-index, flexbox alignment and !important. It is aimed at people who already write CSS and want to understand its quirks.

What you’ll learn

  • Predict how collapsing margins and z-index stacking behave in layouts
  • Choose flexbox alignment and shape-outside for common layout problems
  • Avoid pitfalls with !important and comma-separated selectors