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 CSS: Cascading Style Sheets Use ID Selectors

Daniel Camomile
Daniel Camomile
2,810 Points

my main.css file isn't linking to index.html. What am I missing?

I followed the instructions to the point where I am supposed to effect the index.html through the CSS folder, using the file main.css. I wrote this beneath the normalize link: <link rel="stylesheet" href="css/main.css"> and still nothing I do in main.css effects index.html. What am I doing wrong?

Nick Yoho
Nick Yoho
6,957 Points

can you link to your workspace?

Elad Ohana
Elad Ohana
24,456 Points

Can't say for sure since I can't see your workspace, but I've personally had trouble dragging the file to the css folder in those workspaces, which caused the file to not link. If you think that might be the problem, take out the 'css/' from the href attribute, and see if that fixes the problem. I might be way off though, just my personal experience.

Teacher Russell
Teacher Russell
16,873 Points

I can make css work in style tags in my html, cut and paste them into a css file with the correct link, and it doesn't work. I've been trying for weeks. I've studied on Treehouse and watched dozens of videos and read chats. I once got a very simple html css link to work using notepad, but it won't work on notepad++, and if I add more complicated content to the notepad attempt, it again doesn't work. How can it work in style tags and not in a css file, including the css file that worked well when I had only typed a few lines?

1 Answer