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
William Johnson
2,309 PointsIs normalize.css always used?
Does everyone have a normalize.css file they use every time they begin a project?
It seems like something everyone would want to start with, but at the same time might be personalized. I ask this as I wonder if I should use the one provided in other projects.
Is that ok? Would I potentially run into issues using this specific one?
Thanks
3 Answers
Ken Alger
Treehouse TeacherWilliam;
Welcome to Treehouse!
There are a few other options out to get to a basic starting point. Normalize.css and Reset are two of the more popular ones.
In a nutshell those files attempt to level the playing field for browsers so that if you view your site in IE it is the same as in Chrome, etc. They also create a good starting point for developers to build their own site styles.
Are they necessary? No. Do they save a lot of time and frustration? Yes. Is there a difference between them? Yes, here is a bit of a discussion on that topic, but I would do your own research as well.
Happy coding,
Ken
John Grillo
30,241 PointsMostly, yes. And as Alger mentioned, they are for different purposes. You see, there is the browser-agent and the user-agent for CSS. Why? Because the browser has it's own CSS for interpreting websites and applies certain values and assumes certain things if the user-agent doesn't specify them.
The normalize.css that treehouse provides actually 'normalizes' things to how they would work for google chrome. Normalize is telling other browsers to behave like google chrome.
Reset just automatically says "ok, start from zero. Everything to zero. Only move and work in the directions/places/thangs-n-stuff that I tell you to. DO not pass go or collect $200."
Hope that helps.
William Johnson
2,309 PointsThanks guys.
John Grillo
30,241 PointsWelcome! If you like what we have to say, mark one of us as having the best answer.