@Mr-jaw
Posted
Hello there
Yes, we mostly use em
for paddings, margins and for dimensions, And rem
for font sizes. It is not mandatory. we can use rem
for margins, paddings And em
for font size as well. But the different between rem
and em
is;
em
depends on parent font size and
rem
depends on html declared font size
Learn more about it here
Also, if you want to learn more about other CSS units CSS units
I hope this was helpful 😊
Marked as helpful