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

JavaScript Treehouse Club: JavaScript Car Sounds Background Color, Margin, and Padding

I 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

Andrew Berry
Andrew Berry
Courses Plus Student 1,448 Points

I still have the same problem. Could be an error of the treehouse workspaces

2 Answers

Petar Zelenovic
Petar Zelenovic
11,356 Points

You are using "background" instead of "background-color" as the key.

Try this:

/* Background Color */ 
html { 
Tobias Helmrich
Tobias Helmrich
31,602 Points


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.

How do you guys add pictures to these comments? I wanted to showcase my Car Sounds html file with the different colour of grass green.