When to use rem and em
Hello guys, I'm currently learning how to build responsive design and I came across that we should try not to use the px units to build responsive designs; only keep that for small things, like logos etc...We should try to stick with units like ch, rem and em.
From what I understand, rem is the font-size relative to our root element, the html element and em is the unit relative to the nearest parent element.
But when should we choose to use rem rather than em.
From what I understand, rem is the font-size relative to our root element, the html element and em is the unit relative to the nearest parent element.
But when should we choose to use rem rather than em.
