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 trialDave Lawlor
2,732 PointsHi There has been no mention of a normalize.css file throughout CSS Basics course.
I'd worked through a lot of the older fundations course - there the normalization of the browser's User Agent Styles was given importance - is this no longer the case?
Thanks.
3 Answers
Jonathan Grieve
Treehouse Moderator 91,253 PointsI don't think it has any less or more importance than it did before. Normalise is optional for any project and I think in CSS Basics I think it's just assumed you have it linked. :-)
Dave Lawlor
2,732 PointsJonathan
If it is so "easily solved" why does the internet abound with advice to use a reset file?
Even the author of the Treehouse book "CSS3 Foundations" seems to think it's important, devoting a section to the subject, he writes on Page 34 :
"........but that is a small task (using a reset.css file) when you consider how much easier it is to begin with consistent styles across all browsers."
Jonathan Grieve
Treehouse Moderator 91,253 PointsI'm not advocating not using a normalise file or that you shouldn't performs all reasonable checks for cross browser compatibility.
I'm just saying there is another option out there, kind like a "mini normalise" stylesheet that you can tailor to an individual project.
Dave Lawlor
2,732 PointsThanks very much Jonathan
The "new"basics course uses a project to take students through the various css rules. This includes a styles.css file, that file doesn't make use of an imported normalize.css file.
Won't this lead to potential compatibility issues If you don't "normalize" the browser User Agent Styles?
Jonathan Grieve
Treehouse Moderator 91,253 PointsVery likely. But it's easily solved with a simple universal selector declaration at the top of your stylesheet.
If I'm honest, I don't use Normalise or Modernizr very much. Nothing against them I'm just not in the habit.
I tend to get by with something like this...
* {
padding: 0;
margin:0;
}
Which takes away default margins and paddings from any element and I go from there!
Guil Hernandez
Treehouse TeacherGuil Hernandez
Treehouse TeacherHi Dave Lawlor,
Since this is a "follow along from scratch" type of course, I didn't want to introduce an extra—possibly overwhelming—document into the mix. But, the way the site is built, if you link the normalize style sheet down the road, nothing will change or break.
We focus more on resets in the CSS Layout Techniques course. :)