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 Styling the Intro Paragraph

Angus Eliott
Angus Eliott
3,793 Points

line height

"Next, give intro a unitless line-height that's 1.6 times larger than the font-size value." font size was 1.25. 1.25x1.6=2 according to windows 8.1 PC calculator

.intro {
  font-size: 1.25;
  line-height: 2;
}
Marko Nestorovic
Marko Nestorovic
12,441 Points

It doesn't matter what's the size of font, you just need to put value of 1.6 for line-height property.

1 Answer

Marko Nestorovic
Marko Nestorovic
12,441 Points

The way you're trying to do, is for "em" and "rem" units of font-size, but not for line-heights.

Good answer buddy