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

All default sizes?

16px is the default body size.

What is the default line-height? What are the defaults for all the html tags like H1-H6 and their line-heights?

I'd like to set my defaults so I can use em for everything and know all contexts for creating a full page.

1 Answer

Use a CSS reset. Each browser (user agent) has different default styles, and with a reset, these differences will be minimized if not eliminated.

The most popular is Eric Meyers CSS Reset, but this page seems outdated. http://meyerweb.com/eric/tools/css/reset/

Normalize.css is the new hotness! http://necolas.github.io/normalize.css/