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 trialRamzy El Husseiny
Courses Plus Student 1,079 PointsI can't get my style.css changes applied!
- Background Color */ html { background:#7CFC00 }
This doesn't change anything to Lawn Green as I think it should
2 Answers
Petar Zelenovic
11,356 PointsYou are using "background" instead of "background-color" as the key.
Try this:
/* Background Color */
html {
background-color:#7CFC00
}
Tobias Helmrich
31,603 PointsHey,
background is absolutely okay as it's a shorthand property to define the background, even if you just define the background-color with it. Also it's used in the video, so I don't think that's the problem. Could you please post your whole code?
Also don't forget to end every declaration with a semicolon. So if your code looks like this:
html {
background: #7CFC00;
}
it should actually work. If not please post your whole code as the problem may exists because of something different.
mark norabuena
1,050 PointsHow do you guys add pictures to these comments? I wanted to showcase my Car Sounds html file with the different colour of grass green.
Andrew Berry
Courses Plus Student 1,448 PointsAndrew Berry
Courses Plus Student 1,448 PointsI still have the same problem. Could be an error of the treehouse workspaces