Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBappy Golder
13,449 PointsCSS font-size
It seems Guil is using the following syntax a lot:
font: 1.1em/1.5 sans-serif;
What does it mean?
4 Answers
notf0und
11,940 PointsShorthand for the font property. First number, 1.1em, is font-size, and the second number, 1.5, is the line-height.
Marc Quarles
3,455 Points1.1em is the font-size, the number after the slash (1.5) is the line-height, and sans-serif is the font-face.
Shivam Sadachar
8,109 PointsThe first part, 1.1em is targeting the font-size, the 1.5 is targeting the line-height of the font, and the sans-serif is the font-family.
Yup, Guil just started putting the font-size and line-height together with a forward slash. I didn't get it at first either :) Hope that helps.
Bappy Golder
13,449 PointsCheers guys! Awesome. I was thinking it was a way to divide the font size!