This flowchart will help you pick the right CSS unit

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI19 min

About this video

A walkthrough of CSS length units that uses a flowchart to help choose the right unit for font size, spacing, layout and widths and heights. It covers the common units and when each suits a layout decision.

What you’ll learn

  • Choose between CSS length units for font size, spacing and sizing
  • Apply relative units such as em and rem in responsive layouts
  • Use the flowchart to decide which unit suits a given property