3 ms·
> What's wrong with the following CSS snippet for example? It doesn't achieve a reasonable readable font size which was presumably the goal. Your padding won't
by lmm 1mo ago
> What's wrong with the following CSS snippet for example?
It doesn't achieve a reasonable readable font size which was presumably the goal. Your padding won't be the right size for all screens either. (And personally I hate excessive line height).
> respect the browser's default font size
The browser's defaults are also bad. But they shouldn't be. The browser is in a position to actually fix this; the webdev isn't.
- Tepix 1mo ago> The browser's defaults are also bad. What's bad about them? There is a sensible default and users (in particular those with poor eyesight) will adjust them to their needs. Ignoring this default is presumptuous.
- lmm 1mo ago> What's bad about them? There is a sensible default and users (in particular those with poor eyesight) will adjust them to their needs. 16pt is a sensible default on some screens and very much not on others. > users (in particular those with poor eyesight) will adjust them to their needs In the real world they won't though, much as we might both wish otherwise.
- Tepix 1mo agoGuess what: When you setup your smartphone, it asks you what font size you want. So it's unlikely to be 16pt for everyone.