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 trialpenguinmaster
3,801 PointsCode Challenge media queries
@media screen and (min-width: 480px){ background-color: navy; }
it gives me an error? is navy value legit?
1 Answer
Roscoe Coney
13,124 PointsYou need to add another set of curly brackets after the parentheses! Look at it this way... It's like writing in css styling twice! hope this helps, I had the same issue at first a couple days ago ha!
@media screen and (min-width: 480px) {
body {
background-color: navy; } }
penguinmaster
3,801 Pointspenguinmaster
3,801 Points@media screen and (min-width: 480px) { body { background-color: navy; } }
got it by rewatching the video ;D