I would like to use font sizing with REM and on internet I found following trick:
html { font-size: 62.5%; }
body { font-size: 1.4rem; } /* =14px */
h1 {
You could use 6.25% so that you get your nice 1:1 rem values, then set font-size: 16em;
on body
to get the best of both worlds. It'll fix the tiny font problem in old browsers, and browsers that do understand your rem declarations will ignore it by looking to html
's font-size
when calculating sizes. As far as I can tell there are no drawbacks to doing it this way and you actually get a better sized fallback than you do with 62.5%, but there may be something I've missed so use it with caution.