What is the difference between em and rem font size units?

Difference between em and rem font units

EMs are relative to parent’s element font size

REMs are relative to a base (root – html) font-size.

Child elements with EMs will be affected, When change the font specifications of parent element. But REM won’t affect.

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *