by chriswep · 4y ago · 0 comments
Isn't the 62.5% trick about making the code easier to write/understand/maintain? Or are you advocating for not using relative units at all? That might work for some use cases however it breaks if you need any kind of scaling feature within the site/app.
.main {
width: 80em
}
.sidebar {
width: 20em;
}
.content {
width: 60em;
}
There's no point in bringing the font down to 10px if you're not going to use EMsI'm just saying that using em and rem for sizing isn't as useful as it once was.
My rule of thumb is to only use them for things directly related to text, like inline icons, text spacing and whatnot.