Y
Hacker News
new
|
ask
|
show
|
jobs
by
lucas_codes
1308 days ago
I thought rem was "root em" since its relative to the document root and not relative to the parent like em.
2 comments
ldjb
1308 days ago
According to this page, you are correct:
https://www.w3.org/Style/Examples/007/units.en.html#future
link
sodapopcan
1308 days ago
Yep, both em and rem are relative units, and rem is relative all the way down to <html> (ie, root).
link
https://www.w3.org/Style/Examples/007/units.en.html#future