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

CSS

Media Queries, First Badge, First Code Challenge

For the "Media Features and Media Types" code challenge (after the very first video) I seem to be stuck. On Code challenge 1 of 3, I've looked over my code over and over again for errors and have seen nothing wrong, but I keep getting back an error message "did you enter the correct background color" when I have. I just wanted to check and make sure this wasn't a bug or something that anyone else has encountered.

Hi Paul, Besides your background color did you check to see if you included your text color as well?

Can you show us your code.

Okay, I figured out my problem. I realized I needed two sets of curly braces. Thanks everyone for offering to help!

4 Answers

Oh my goodness! Paul Fischer, mine was the extra curly braces as well! LOL! Thank you!

I got the same thing. But I had just misspelled media.

I'm having the same issue.

It doesn't look like it's a bug or anything after all. I re-watched the last seven minutes of the video and I saw my problem. I made an adjustment and passed the challenge. If you want to post your code, though, I could help!

I'm stucked! Here's my code, please help:

@media screen and (max-width: 768px) {{ background: #FF6347; color: white; } }