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 trialLauren Stephenson
2,747 PointsWhen 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
2,747 PointsI 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?
Kristen Law
16,244 PointsCan 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!
David Tonge
Courses Plus Student 45,640 PointsHey,
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>
David Tonge
Courses Plus Student 45,640 PointsEdit : 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.
Lauren Stephenson
2,747 PointsI figured it out! thanks
Lauren Stephenson
2,747 Pointsthanks for the help!
Kristen Law
16,244 PointsKristen Law
16,244 PointsYeah that sounds right, good catch! Glad you got it figured out