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 trialKatherine May
2,763 PointsI can't get the normalize.css sheet to apply!
I can't work out where I'm going wrong - I keep checking the code and it looks just the same as the code on the screen to me. But when I click preview, the normalize stylesheet doesn't apply. I think it's probably something tiny, but it's driving me a bit crazy trying to spot it! What should I look for?
3 Answers
Kevin Korte
28,149 PointsThe biggest error here usually is an incorrect file path. You're code may match the video's, but if your file structure isn't exactly the same, it won't apply. Probably wise to use relative paths to link the the normalize file, so make sure you are using two dots to go back one folder IF NEEDED from where the head file is located.
Also know normalize doesn't really cause a visual change. It just more so removes browser default padding, margins, and styles on elements, and gives you a level playing field across browsers so the elements more or less render the same.
You can use your browsers dev tools to see if the normalize file is actually being included in the page easily.
Sam Chaudry
25,519 PointsAs Kevin said run your website in Chrome and hit F12 it will bring up the inspector, from there you can see any problems.
Sam Chaudry
25,519 PointsAs Kevin said run your website in Chrome and hit F12 it will bring up the inspector, from there you can see any problems.