4 ms·
They’re not necessarily overridden. Percentages and ems are units that are derived relative to their inherited style. If you make your browser default have a ba
by rmrfrmrf 9y ago
They’re not necessarily overridden. Percentages and ems are units that are derived relative to their inherited style. If you make your browser default have a base font of 24px instead of 14px and someone back in 2010 made their site css defined as
html {
font-size: 2em;
}
Then your site’s 28px default font size that worked just fine on every browser now becomes 48px on mobile and breaks everything.
- ComputerGuru 9y agoThat’s actually the original purpose behind the relative sizing, so people could choose a base text size that best suited them.
- Moru 9y agoThat was before the pixel-perfect designers got full control over how I read stuff on my own computer :-)