What does em mean?


#1

Hey, I’m working with CSS and I just finished the text size lesson. I don’t understand what em means (ex. 1.25es) is meant for. Any ideas?

Current code:
.hero a {
color: #00FFAA;
font-size: 1.25em;
text-decoration: none;
}


#2

i think this answer covers it perfectly:

em is a unit of measurement, specifying the size of the font (it works different from px, em scales better and isn’t fixed (like pixels))


#3

This topic was automatically closed after 7 days. New replies are no longer allowed.