Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Please explain this code to me-ems and px Re: Please explain this code to me-ems and px

#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.)