by kristiandupont · 10y ago · 0 comments
"One of the best practices to typography on the web is to use relative units like rem and em.", it says, but why?? I get as a general philosophy that relative might be preferable over absolute, the way you prefer relative paths in your build system. But "relative" in this case means relative to the font size which is either specified or the default, both which makes s using absolute values just as valid and easier to comprehend..?
You can change your base font size with a media query and have the rest of the website adapt accordingly because they're all sized relative to the base font size.
Advantage of "em" and "%" (relative) without the cascading (thus absolute).