Answer the question
In order to leave comments, you need to log in
Why do some frameworks (bootstrap, bulma) set html font-size to 14px?
It's just that the default is 16px. I know it's not always the case, but most of the time.
Answer the question
In order to leave comments, you need to log in
I guess the reason is that these days more sites are built on a 100% layout match rather than Content First. Accordingly, more often they will set a fixed size, rather than remain at the default.
And why specifically 14 - and why the default is 16? 14 is a kind of standard, most sites use this size. Perhaps this is a typographical standard, but I'm not sure here. Magic numbers everywhere...
The font-size set on the html is the resulting size of 1rem (root em). In responsive layout best practices, Rem is used to specify sizes and fonts, font-size set to body (Em) is used for responsive grids.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question