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!
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

Felix Johansson
3,341 PointsWhats wrong with this text?
@media screen and (min-width: 480px) { body { background: navy; } }
2 Answers

Chad Whitt
10,779 PointsThe script works for me. Do you have CSS loaded after the media query that could be overwriting it?

Emma Willmann
Treehouse Project ReviewerI don't see anything that looks wrong. Are you trying to use this in a code challenge? If you are, which one? Otherwise, where/how are you using it?
Adam Sackfield
Pro Student 19,663 PointsAdam Sackfield
Courses Plus Student 19,663 PointsNothing! As Chad Whitt says ensure there are no other CSS rules after this rule as stylesheets cascade, also ensure there is no other stylesheet linked after the one the above rule is inside. here is a pen showing it working.