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

HTML How to Make a Website CSS: Cascading Style Sheets CSS Facts

The normalize css file and the browser default specifications

Hi there

In the "What is CSS" video, Nick Pettit has us add the normalize.css file to our HTML in order to override the default browser settings but then in the video certain things that we code are not shown and we need to get even more specific than the browser. Is this because the normalize file was not specific enough? Am failing to understand the point of the normalize file if it does not in fact create a level playing field for which we can add custom css.

2 Answers

Kevin Korte
Kevin Korte
28,149 Points

I'm not sure in the video, but in general it's a fine balance for CSS resets like normalize.css. They don't want to be too heavy, nor too opinionated, so they tend to stay light.

Really, what normalize does is it causes the different browsers to render elements the same. It's mostly dealing with default margins and paddings on elements, font properties, etc. It's generally a pretty subtle change, but each browser can have it's own default for rendering an element, and to smooth those out is the goal.

I am impressed that you understood my question, am not very good at them :) Thank you, that makes perfect sense. So it is to level the playing field amongst multiple browser rendering not specific elements etc. Got you!

Kevin Korte
Kevin Korte
28,149 Points

No worries, it's a common question. Right, it's so all the different browsers render base styles for elements consistently. There is not a standard here, so they all tend to do it a bit differently. It can cause minor inconsistencies in your design. This just helps them play nicely.