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

CSS How to Make a Website CSS: Cascading Style Sheets What is CSS?

drstrangequark
drstrangequark
8,273 Points

My 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.

David McNeill
David McNeill
44,438 Points

Hey Sam, your code didn't paste into your question. Give it another go and hopefully I or someone can help!

drstrangequark
drstrangequark
8,273 Points

Thanks 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
David McNeill
44,438 Points

Looks 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
David McNeill
44,438 Points

Oh, 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
drstrangequark
8,273 Points

Thanks 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
seal-mask
.a{fill-rule:evenodd;}techdegree
Jonathan Martinez
Full Stack JavaScript Techdegree Student 6,439 Points

Hi 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
drstrangequark
8,273 Points

I 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
drstrangequark
8,273 Points

I 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
drstrangequark
8,273 Points

Nevermind. Issue has been resolved. I had the index.html in the img folder for some reason. Thanks everyone!

David McNeill
David McNeill
44,438 Points

Easily done! Glad you got sorted Sam :-)