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 Layout Techniques Display Modes Which CSS Reset Method Should I Use?

Nathan Richie
Nathan Richie
1,428 Points

When to use a full reset stylesheet over a simple line reset.

Hi! When practicing layout elsewhere I've read about and used a simple reset that touches even less styles than normalize.css. I just worry about using these big premade resets when i'm just learning. Since it's applying styles and changes I maybe don't fully understand yet.

The reset I've used in the past just helps normalize spacing that different browsers have:

  • { box-sizing: border-box; margin: 0; padding: 0; } (The bullet point is an asterisk, the input box just styles it that way) Thanks!

1 Answer

Karolin Rafalski
Karolin Rafalski
11,368 Points

I think it may be helpful to read more about normalize.css:

http://nicolasgallagher.com/about-normalize-css/

excerpt: The file is heavily documented inline and further expanded upon in the GitHub Wiki. This means that you can find out what each line of code is doing, why it was included, what the differences are between browsers, and more easily run your own tests.