DEV Community

loading...

Discussion on: Em v/s REM

Collapse
valeriavg profile image
Valeria

This doesn't seem right: 'em' is not an 'emphemeral' unit, it got this name from the uppercase letter 'M' (em) as most of CSS units come from typography.

Collapse
holdmypotion profile image
Rahul Author

Wait, you have literally made a super valid point. I googled it and found this 👇
But this is the only site saying this. Most of the other websites state the same fact as you are saying.
My bad I guess!
Thanks for the info, mate!

Collapse
holdmypotion profile image
Rahul Author

And as a matter of fact "emphemeral" is not even a word. LOL!

Collapse
cmcodes profile image
C M Pandey

Quote from “The Principles of Beautiful Web Design”

“An em is a CSS unit that measures the size of a font, from the top of a font’s cap height to the bottom of its lowest descender. Originally, the em was equal to the width of the capital letter M, which is where its name originated.”

Collapse
holdmypotion profile image
Rahul Author

That's just perfect!