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 Use ID Selectors

Angela Farnsworth
Angela Farnsworth
865 Points

css files won't link up with index file

I have been trying to search the forums in hopes of being able to find the answer but I am still unable to get it figured out. I have checked to see if I wrote the code correctly and to make sure files are in the right place. Again as far as I can see everything is but the css files are still not linking up at all.

I also tried moving the css file to another location to see if maybe it was just the folder but nothing.

Is this an error with the program? I'd like to get it figured out before moving on.

Garrett Sanderson
Garrett Sanderson
12,735 Points

Post your code so we can look more into the issue.

9 Answers

Angela Farnsworth
Angela Farnsworth
865 Points

I got it working... what I did was copy and paste the code from the project files. Not sure what the issue is with mine stuff but at least its working now!

Thank you everyone for the help!

barnabasadedoyin
barnabasadedoyin
1,501 Points

Hi Angela, can you kindly post your code to look things up? External CSS will invariably link if all syntax are in place.

Angela, if you could post your code we can take a look.

Angela Farnsworth
Angela Farnsworth
865 Points

I'm not quite sure how to post my code but did take a screen cap. I put the code into the index page to make sure I wasn't messing up the code in the css files.

http://i377.photobucket.com/albums/oo211/Silivrenwolf/ScreenShot2014-11-21at80537PM.png

It sounds like there is a problem with the way your files are in their folders. Make sure your CSS files are in the CSS folder, and of course then you will have your index.html file one level up from the CSS folder.

Andre Koehler
Andre Koehler
1,008 Points

I had the same problem originally then found out that I had labeled the folder in caps as CSS, but wrote the code as css.

This was killing me. Thanks for the comment.

Angela Farnsworth
Angela Farnsworth
865 Points

Nope everything is in the right place. No caps with the CSS. Still not connecting to the css files. I guess I can try deleting everything and creating the files again to see if that works.

Angela Farnsworth
Angela Farnsworth
865 Points

Just deleted everything and started over and still no luck. :/

Angela, could you upload the entire project to Dropbox?