Units: px, em, rem, % and vw
Absolute units like px are fixed. Relative units adapt: rem follows the root font size, % follows the parent, and vw follows the window width.
Examplehtml
Quick check
Which unit is relative to the root font size?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.