Nice trick for rem
units in css, that simplifies calculation:
html { font-size: 62.5%; } /* =10px */
body { font-size: 1.4rem; } /* =14px */
h1 { font-size: 2.4rem; } /* =24px */
Found here https://www.sitepoint.com/understanding-and-using-rem-units-in-css/
No comments:
Post a Comment