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 How to Make a Website Responsive Web Design and Testing Write CSS Media Queries

John Anderson
John Anderson
1,916 Points

Correct answer for Media Query 660px breakpoint not being accepted in code challenge. -resolved

Is there something wrong with this format? @media screen and (min-width: 660px) { body { background: darkgreen; } } *When in preview mode the background does change to dark green.

3 Answers

Perhaps: background-color: darkgreen;

actually that should work...

Sjors Theuns
Sjors Theuns
6,091 Points

Hi John,

first a little tip: add 3 backticks (```) before and after your code. That way it is better readable.

As for your question, I assume you need max-width instead of min-width...

John Anderson
John Anderson
1,916 Points

Thank you Sjors. Great tip.

John Anderson
John Anderson
1,916 Points

Thanks David,

Issue resolved. It was accepted after backing out and restarting the code challenge.