How can you determine when to use em unit of measurement?

How can you determine or set the basefont of a document to be able to set your relative units, like em appropriately?

How do you know what value you set for em units as in this lesson here

Hi,

Em and rems are an incredibly useful topic to know about! I can’t summarize it neatly better than Kevin Powell, so you should def check out the video to get a full understanding: https://www.youtube.com/watch?v=_-aDOAMmDHI&t=657s

Em is relative to the font-size of its parent, while rem depends on the to the root font-size… the implications are pretty big.

1 Like