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
Lena Faitz
4,750 PointsMedia Features and Media Types Challenge Error
Hi there! I seem to be having an issue with getting a code challenge to recognize my code as being correct, even though I seem to have done everything right.
The Challenge:
Next, create a new media query that sets the body element's background color to #4682B4 if the viewport width is 480px or less.
My Code:
@media screen and (max-width: 480px) {
body {
background-color: #4682B4;
}
Everything seems alright to me, but it keeps kicking back the error: "Bummer! Did you specify the right background color?"
I've double and triple checked on different web browsers and had someone else do it on their account. Same issue. Any ideas?
Thanks for the help in advance!
- Lena
1 Answer
sungwon choe
15,044 PointsHi Lena!
The code you posted seems to be missing a bracket "}" ;) Is it missing in your code challenge code as well?
Cheers~
Lena Faitz
4,750 PointsLena Faitz
4,750 PointsThat fixed it! There was a missing "}" in my first section of code that was mixing itself up with my second statement.
Thank you very much! I'll be sure to watch my closing statements more carefully in the future.
Thanks again! :)