Lesson 9 of 50
cssUnits of Measurement
8 mins
Course progress18%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 9 of 50
css8 mins
Keep these ideas in mind as you work through the lesson.
CSS units fall into three groups:
px, pt, cm, mm, in (rarely used for responsive layouts).em (relative to parent’s font‑size), rem (relative to root), % (relative to the parent element’s dimensions).vw (1 % of viewport width), vh (1 % of viewport height), vmin, vmax..hero { height: 100vh; }