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 Foundations Web Typography Text Layout and Readability

Default line height

This video says browsers default to 1em line-height. Every browser I have installed defaults to 1.2em.

2 Answers

as i know line-height values are based on the computed font-size, Normal is supposed to be based on font size but it can and does vary from browser to browser.

anyway you can always change it using Css.

I know that it can vary since the spec leaves it up to the UA with a recommendation of between 1.0 and 1.2, but does it actually vary in the real world? Chrome, Firefox, Safari, Opera, and IE all default to 1.2 on my computer. I think the claim that the default is 1.0 is at least wrong in practice if not in theory.