Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Micole Noddle
Micole Noddle
5,797 Points

Can I use the normalize.css and responsive.css files for future projects?

Are these files designed for us to use for future projects or do we need to find alternate ones (such as Eric Meyer's Reset or html5doctor)?

Also, if we were to make a slight change to the normalize.css file (let's say colors), will it impact it's function?

Thanks!

Logan Wu
Logan Wu
10,792 Points

Yes, you can use the normalize.css and responsive.css for future projects too.

You can also make slight changes to the normalize.css file as you want but I would suggest creating your custom .css file and keep the normalize.css file intact so that you won't forget about where to go to make changes for the future.

Jesus Mendoza
Jesus Mendoza
23,274 Points

Normalize.css is open source, I don't know about responsive.css though

Micole Noddle
Micole Noddle
5,797 Points

Logan, I meant using those in addition to my own css file, like having a style.css along with the others. Is that what you're referring to in your answer? Also, is it OK to make a slight change to the responsive.css file if need be? It seems to be overriding my custom css file in one small area... Thanks for your help!

Logan Wu
Logan Wu
10,792 Points

The responsive.css file shouldn't be overriding to your custom .css file if you but it in front of your custom .css file because of the cascading property of .css files.

Micole Noddle
Micole Noddle
5,797 Points

Logan, in the course, Nick has us add normalize and responsive above our main css, so I gather that's why my main is overridden by the responsive. Am I supposed to be listing my main above the responsive? Why does Nick do it the other way then?

Logan Wu
Logan Wu
10,792 Points

Hi Nicole, For your questions, you need to be listing your custom .css below all the default .css files so that you can overriding any settings in the normalize.css and responsive.css files. This is due to the cascading property of CSS/HTML. The location of where you put the code does matter because the succeeding codes can override preceding codes if the properties overlap. Let me know if you have more questions.

2 Answers

Peter Smith
Peter Smith
12,347 Points

Hi!

normalize.css is a common css file used across the industry, you can find it at it's source (here)[necolas.github.com/normalize.css/].

responsive.css is also a common css file that you might see on other websites. Unlike normalize, a responsive.css file is individualized for each particular website.

You can use normalize.css without configuration with any web project you like. However, you're more likely to build your own custom responsive.css for your own sites for your own needs and styles (though treehouse's responsive.css certainly starts you off in the right direction and on a good foundation)

Micole Noddle
Micole Noddle
5,797 Points

Awesome. Thanks for the help, Peter and Liam!

Liam Maclachlan
Liam Maclachlan
22,805 Points

Hey man. Those are completely free source. Feel free to edit to your own specifications and re use all you like :)

Want extra padding in your table by default? BAM!! Done. Want the h1 tag to be Bright purple instead of black? BAM! Done.

You just made it happen and you were totally allowed to do it!

Another one that is worth playing around with is the grid.css

Happy coding, Bro :))