3 ms·
If you do the following: html { font-size: 62.5%; } You can convert from pixels to rems (or ems) quite easily: p { font-size: 1.4rem; // 14px
by FormFollowsFunc 11y ago
If you do the following:
html {
font-size: 62.5%;
}
You can convert from pixels to rems (or ems) quite easily:
p {
font-size: 1.4rem; // 14px
}
I use rems for stuff that needs to scale with text, ems for line-height and pixels for everything else.