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 Mobile-First CSS Layout Mobile-First CSS Layout CSS Reset with Normalize

With normalize, why to tell padding: 0; why not do that in a normal css file?

With normalize, why to tell padding: 0; why not do that in a normal css file?

3 Answers

Your normalize will target the styles that need standardization across browsers. So, lots of styles are "reset" using this file, including padding. You can reassign your preferred styles in your styles.css file after normalize has reset it.

Oh yes i'm confusing the two, :-( thanks :-)

William Mead
William Mead
9,937 Points

I agree with jaSon. It seems that adding your own styles in the normalize.css file amounts to a fork of the file. If you ever want to update the file with a new version, you would lose these changes. It seems like a better idea to keep your own personal resets at the top of your own stylesheet.