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 trialdrstrangequark
8,273 PointsMy html document is not linking to normalize.css
This is my code: <link rel="stylesheet" href="css/normalize.css">
This should be correct, but none of the styling is being applied to the preview.
drstrangequark
8,273 PointsThanks David! Not sure why it didn't paste in. Let's try it again:
link rel="stylesheet" href="css/normalize.css">
I had to remove the first angle brace in the beginning so that the code showed up but it's there.
5 Answers
David McNeill
44,438 PointsLooks fine to me! Most people add the type="text/css" to the link tag, just to inform the browser of the file type to expect. It's not essential though, as far as I'm aware.
Just double-check your CSS document filename and location matches exactly what you've typed, that's all I can think of!
David McNeill
44,438 PointsOh, and if you're working in Workspaces (which I'll assume you are) then make sure your normalize.css file is definitely INSIDE the 'css' folder. Sometimes it's difficult to see, if the folders are all expanded the indentation is very slight and can be missed!
drstrangequark
8,273 PointsThanks David! Not sure why it didn't paste in. Let's try it again:
link rel="stylesheet" href="css/normalize.css">
I had to remove the first angle brace in the beginning so that the code showed up but it's there.
Jonathan Martinez
Full Stack JavaScript Techdegree Student 6,439 PointsHi Sam,
Is your normalize.css file in the css folder? Also something I learned along the way was that everything is case sensitive. So if you have CSS as the folder name and specify the path as css, it won't work correctly.
drstrangequark
8,273 PointsI just added a new CSS document to override normalize.css and it is not affecting the document either. My syntax and capitalization are all correct.I'm not sure what's going on.
drstrangequark
8,273 PointsI just added a new CSS document to override normalize.css and it is not affecting the document either. My syntax and capitalization are all correct.I'm not sure what's going on.
drstrangequark
8,273 PointsNevermind. Issue has been resolved. I had the index.html in the img folder for some reason. Thanks everyone!
David McNeill
44,438 PointsEasily done! Glad you got sorted Sam :-)
David McNeill
44,438 PointsDavid McNeill
44,438 PointsHey Sam, your code didn't paste into your question. Give it another go and hopefully I or someone can help!