Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lucas_codes
· 4y ago · 0 comments
I thought rem was "root em" since its relative to the document root and not relative to the parent like em.
Comments
[–]
ldjb
4y ago
According to this page, you are correct:
https://www.w3.org/Style/Examples/007/units.en.html#future
[–]
sodapopcan
4y ago
Yep, both em and rem are relative units, and rem is relative all the way down to <html> (ie, root).