Home › Forums › CSS › Please explain this code to me-ems and px › Re: Please explain this code to me-ems and px
December 7, 2012 at 2:41 pm
#116682
Jerad
Participant
1) The 1.5 is the line height. [Check it out.](https://css-tricks.com/snippets/css/font-shorthand/ “CSS-Tricks: Font shorthand”) 1.5 is the same as 150%. So in this case, if the font-size is 16px, a line-height of 1.5 = 24px.
2) 32px = 28px * 1.1429. (It’s actually 32.0012, but close enough.)