Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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?