CSS em and rem explained #CSS #responsive

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI17 min

About this video

Explains the CSS em and rem units, how each is calculated, and when to choose one over the other. Covers basic examples, buttons with a call to action, and using both with media queries. Suited to developers and designers who build responsive interfaces.

What you’ll learn

  • Explain how em and rem units are calculated in CSS
  • Choose between em and rem for font sizes and spacing
  • Apply em and rem with media queries for responsive layouts