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 trialMarc Hinton
1,330 Points@media screen and (min-width: 660px) { body { background: darkgreen; } How is my answer wrong?
I used the same exact method that I used for the first task of the challenge yet I receive the wrong answer. However, for the first task it says I am correct. This is how it looks between both tasks.
@media screen and (min-width: 480px) { body { background: navy; }
@media screen and (min-width: 660px) { body { background: darkgreen; }
Any reason why my answer still comes up wrong?
1 Answer
Austin Whipple
29,725 PointsLooks like you're missing a brace to close out both the media query and body element styles. Should look like:
@media screen and (min-width: 660px) {
body {
background: darkgreen;
}
}
Marc Hinton
1,330 PointsMarc Hinton
1,330 PointsThanks!