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

Finally, target main-content with an ID selector. Add a background-color property and set the value to lightsteelblue?

main-content {
background-color: lightsteelblue; }

6 Answers

Hi Justice,

I find you didn't put ID selector which require to add # for ID.

For example: #main-content

#main-content { 
      background-color: lightsteelblue; 
}

If you find Classes selector, you will have to use . (period)

Happy Coding :)

main-content {

  background-color: lightsteelblue; 

}

Is something wrong with my answer, it won’t submit?

S J B
S J B
2,631 Points

yup as per James above and didn't work for me either...

Snow Girl
seal-mask
.a{fill-rule:evenodd;}techdegree
Snow Girl
Full Stack JavaScript Techdegree Student 11,438 Points
#main-content {
   background-color: lightsteelblue;
}

You might have forgotten the hash before main-content - hope this helps!

I did this and it didn't work my answer looks like this

#main-content { background-color: lightsteelblue; }

main-content {

  background-color: lightsteelblue; 

}

This is not working for me.

thanks for the help :3