Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Media Queries Code Challenge, STUCK!

The code challenge is "Create a media query that sets the 'body' element's background color to #FF6347 and its text color to white if the viewport width is 768px or less."

My Code Is "@media screen and (min width: 768px){






And the error I get is "Bummer! Did you specify the right background color?" YES I DID! I copy/paste what color you told me to put

Can anyone please help :) Thank you.

4 Answers

:D I got what I was doing wrong

min width

should have been


Zen Hess
Zen Hess
6,700 Points

Nice! That section was a bit confusing to me as well. Glad to hear you were able to resolve the issue on your own.

Marcus Tisäter
Marcus Tisäter
4,886 Points

Isn't it suppose to be

background-color: #FF6347;

It Was Not necessary in this case. It worked the way I put it, just needed to edit the @media screen and () function.