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

HTML How to Make a Website Creating HTML Content Include External CSS

Katherine May
Katherine May
2,763 Points

I 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
Kevin Korte
28,148 Points

The 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
Sam Chaudry
25,519 Points

As 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
Sam Chaudry
25,519 Points

As Kevin said run your website in Chrome and hit F12 it will bring up the inspector, from there you can see any problems.