Comment by ivanjermakov
3 days ago
On a sidenote, there is surprisingly no universal agreement on a default font size and "scaling" of a website.
Common recommendation is font-size: 14px on html element, but I often encounter websites that are way off in scaling.
Isn’t the recommendation to not use px at all? Or just “Pepperidge farm remembers”?
Sigh... You'd think people would know this by now. What does it even mean to be a "web developer" if you don't know the difference between pixels and text size? It seems like such a fundamental thing, like a decorator knowing how to calculate how much paint is needed for a job. But no... now we have web browsers where a pixel isn't even a pixel, it's 4 pixels, on a "HiDPI" display...
This is unfortunately true. It feels like "1rem" should be the ideal body don't size. But on desktop browsers this is often quite small.
Personally I configure my browser's default font size (1rem) to something nice and readable, but I'm sure that the number of people who do this is <10%. Probably closer to 1%.
But either way I would recommend against hardcoding a size in px.
Sorry pal but font size is not something you decide. Font size is something I decide!
Absolutely. Would be great to have a consistent starting point.