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

General Discussion

Whats wrong with this text?

@media screen and (min-width: 480px) { body { background: navy; } }

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

2 Answers

Chad Whitt
Chad Whitt
10,779 Points

The script works for me. Do you have CSS loaded after the media query that could be overwriting it?

Emma Willmann
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Emma Willmann
Treehouse Project Reviewer

I 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?