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 Unused CSS Stages Media Queries Media Features and Media Types

thefamousjames
thefamousjames
1,684 Points

Code check doesn't seem to work... where did I go wrong?

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

Entered this code:

@media screen and (max-width: 768px) { body { background: #FF6347; color: #FFFFFF; }

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

1 Answer

thefamousjames
thefamousjames
1,684 Points

duh!! missing the extra curly braces. rookie mistake!