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

why is this wrong - my error message was make sure you're setting background colour to light steel blue

main-content {

background-color: lightsteelblue;

}

What am I doing wrong

2 Answers

seems like you forgot "." in the beginning of the main-content

your code is :

main-content {
      background-color: lightsteelblue;
}

the true one is:

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

let me know if it worked or not

i tried that

.main-content { background-color: lightsteelblue;

and i got this error message Make sure you're using an ID selector that targets 'main-content'.

I thought main-content was a class selector. try :

#main-content {
     background-color: lightsteelblue;
}
Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,254 Points

Try setting the same value with the background property. :-)