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 trial

CSS CSS Basics (2014) Understanding Values and Units Fonts and Line Height Review

Evan Gatchell
Evan Gatchell
5,878 Points

Short-hand Font property

font: 1em/1.5 Helvetica, Arial, sans-serif;

"In the font shorthand declaration above, ___ is the font-size value and ___ is the line-height value."

1em and 1.5 are wrong. Why?

4 Answers

Jacobus Hindson
Jacobus Hindson
14,429 Points

Hi Evan,

Your 1.5 needs a measurement - px, pt, cm etc.

didn't work for me?

Manuel Miguel
Manuel Miguel
1,139 Points

In the font shorthand declaration above, 1em is the font-size value and 1.5_ is the line-height value.

Evan Gatchell
Evan Gatchell
5,878 Points

So 24px (assuming the parent element has a size of 16px) would be acceptable?