5 ms·
I thought rem was "root em" since its relative to the document root and not relative to the parent like em.
by lucas_codes 4y ago
I thought rem was "root em" since its relative to the document root and not relative to the parent like em.
- ldjb 4y agoAccording to this page, you are correct: https://www.w3.org/Style/Examples/007/units.en.html#future https://www.w3.org/Style/Examples/007/units.en.html#future
- sodapopcan 4y agoYep, both em and rem are relative units, and rem is relative all the way down to <html> (ie, root).