CSS Units Explained: px, em, rem, %, vw, and clamp()

16px, 1.5em, 1rem, 5vw, or clamp()? Every CSS unit is measured against something different, and the wrong pick can quietly ignore someone’s font size setting. Here’s when to reach for each one:

Clamp() paired with a sensible root font-size is the pragmatic middle ground for accessibility and fluid layouts.