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

Stuck on a question

Next, create a new media query that sets the 'body' element's background color to #4682B4 if the viewport width is 480px or less.

I keep getting that my background color is wrong but it is correct.

@media screen and (max-width: 480px) { body { background: #4672B4; }

What am I doing wrong?

4 Answers

Justin Horner
STAFF
Justin Horner
Treehouse Guest Teacher

Hello Juliana,

Check your code to ensure that you have closed all your opened brackets.

Hope this helps!

The background color you posted says #46*72B4. You stated that it should be #4682*B4. Could that be it?

Close your mediaquery

combination of all three- my mistake. Thank guys.