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 How to Make a Website CSS: Cascading Style Sheets What is CSS?

Stacy Fabian
Stacy Fabian
2,246 Points

Is normalize.css a standard?

So, this might sound like a dumb question but...

Is the "normalize.css" file that you download in this specific course section of the track something that is an industry standard? I mean since it's to normalize styling across browsers is it something I should save away from future personalize use or is it just something for the Treehouse tracks and examples?

Thanks!

5 Answers

Hi Stacy,

I suppose you could consider it somewhat of an industry standard. It's not something that was created by treehouse and only used internally for their projects.

It is a project by Nicolas Gallagher.

If you take a look at this page: http://necolas.github.io/normalize.css/ You will see a list of some websites that use "normalize.css" There are some major websites listed there. So yes, big name websites use it and you should at least be aware of it.

Dave Berning
Dave Berning
17,365 Points

It certainly wouldn't hurt to keep for future use. From what I understand is it replaces the need for a reset.css stylesheet by giving properties to tags like paragraphs and headings. Just one less thing you have to worry about really. If you don't use a reset.css stylesheet, you'll meed to define the spacing between paragraphs, size of heading levels, spacing between divs, other block level elements etc. I use it every once in a while.

jasonniebauer
jasonniebauer
28,801 Points

It is a great idea to bookmark the normalize.css site for quickly referencing back to for the latest version to download. This is totally not a dumb question! Using a reset like normalize.css is more of a best practice, rather than "standard." I use the normalize.css concept on all of my projects.

Here is a good tip! Remove unnecessary css declarations from your reset stylesheet.

Hi Jason,

It would be more appropriate to refer to "normalize.css" as an alternative to a css reset.

Dave Berning
Dave Berning
17,365 Points

Yeah, a reset stylesheet removes the default styles on the various elements set into place by the browsers. The styles vary browser to browser and may result in your site looking slightly different in other browsers. A reset stylesheet will give you a blank slate to work with but you'll have to define those styles eventually in your own stylesheet. As Jason said, its an alternative by giving the different 'default' styles to all the elements resulting in the same styles across browsers.

The file "normalize.css" is used to force browsers to show all elements on a page more consistently. There are certain elements within certain browsers that look different and this is a way to reset everything on a level playing field.

As a test you should write some HTML mark-up in a text editor and view the results within different browsers to see if the results vary. Some might be more noticeable than others and if you are new to this you might not as anything wrong or different. Then use the "normalize.css" file on that same HTML file and view it within different browser to view the results.

You don't have to use it all the time but it is good to start real world(client) projects with.

Also do a Google search for the Eric Meyer CSS Reset and use that instead of "normalize.css" and notice if your results vary.

Kevin

Stacy Fabian
Stacy Fabian
2,246 Points

Awesome, thanks! Always good to keep the "open source" mentality and use whatever tools you can get your hands on, I guess. :)

Dave Berning
Dave Berning
17,365 Points

Of yeah of course. There are tons and tons of resources that are developed by individuals in the field. The web field is nothing but open source and one big family (not to be corny). Other things you should look into (and keep forever) are CSS responsive frameworks like Columnal, PHP compressors, various IE polyfills, CSS off-canvas navigations, and much more. The list goes on and on and the more stuff you find the better.