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