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

Lauren Stephenson
Lauren Stephenson
2,747 Points

When changing the background color and previewing it is not working... I can not find my mistake! help

after adding main.css file and then changing background color to orange to test for if the file is listed right in the index.html document... i have it exactly as the video shows.... suggestions?

5 Answers

Lauren Stephenson
Lauren Stephenson
2,747 Points

I think it was because I used uppercase letters for my CSS folder, so it was not directing the .css files I was adding... Does that sound correct?

Yeah that sounds right, good catch! Glad you got it figured out

Can you post your code from your main.css file? Did you refresh the page after previewing it?

Make sure it is linked correctly within the <head> tags in your index.html file:

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

And also make sure that the main.css file is under the css folder. Hope that helps!

Hey,

Would you mine posting the code that you used here? I'm interested in seeing the head area and probably you could explain your file structure.

<head></head> 

Edit : I was writing this from my iPad around the same time Kristen Law posted her question. We're both interested in seeing the same thing to help you with your problem.