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

.css pages are not working

I am following along with the lessons taught by Nick Pettit and the two css pages that i have linked are not working.

I have them linked like this

<link rel="stylesheet" href="normalize.css">
<link rel="stylesheet" href="main.css">

I have the pages saved in my file tree and am using the program provided.

have them linked like i was showed in the video, for some reason its not showing up here

Thank you so much I forgot to site then folders as well.

3 Answers

Hi Kaitlyn,

I've edited your post so that your code will show. Check out the Markdown Cheatsheet shown on this page on how to do this.

From what I remember, Nick has you drop the CSS files into a folder called CSS. If this is the case, you can link to your CSS files this way -

<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">

Could be a simple typo IMO. Check the spelling and directory path.

And paste your code so we can help you further.

<link rel="stylesheet" href="css/normalize.css"> <link rel="stylesheet" href="css/main.css">

you have to specify the path. If you are linking the file in your index.html and you have your .css file in a folder you have to add the folder name.

"folder_name/nameOfTheCssFile.css"