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 Basics (2014) Getting Started with CSS External Style Sheets

Why does treehouse supply in this course "import-style.css" and in the "how to build a website" course "normalize.css"?

How does this help with learning? It seems like you set up the style building foundation for us. When I build my own website will having my own style.css be enough? And if you recommend having a normalize/import-css file, what are the specifications for building one that I use as a base for all my projects. It doesn't seem right to import treehouse's normalize/import-css file to my own personal projects.

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! I believe the import-style.css you're looking at was created by Treehouse just to give a starting point for the custom CSS you'll be adding. Normalize.css, however, is a fairly common thing to use. In fact, some really big sites (Twitter among others) use normalize.css.

All browser (and indeed different versions of the same browser) have default paddings, margins, font-sizes etc. The purpose of normalize.css is to make all these defaults the same across browsers. This has the benefit of giving you a "blank canvas" to work with. It helps to ensure that your website looks the same on this particular update of Chrome (for example) as it does on a previous version of Chrome.

You can find the current version of normalize.css repository here. Also, take a look at the bottom of the page for more big sites that use normalize.css. This is free to use for everyone!

Hope this helps! :sparkles:

hey jennifer. i know this might be a silly question at this point and probably really simple, but how did you create a link in your comment and type "here"? thanks

There are a couple of different "free to use" css files that authors make available for anyone to use. The "normalize.css" being one of the most popular. If you wanted to create your own, you can certainly do that. However, you will most likely find yourself setting some of the same rules that are already being set (reset) in the free to use "normalize" file.