define em on the specific component ? or on body ? or leave it to the device browser default ?

well my question says it all , almost a year into web dev , today i realised the importance of em's reading this article and how they really work .

So well i was just wondering how do pros go about using the em ??

or is it now just better to go the rem way ??

Thank you .


Setting the height of an empty div

I tried to set the height of an empty div element. I am able to set it using values in em, but when I try the same with values in % it doesn't seem to work. What are the reasons for this behaviour?

Syndicate content