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.


Problem: Stuck at Media Query Challenge 3of3

Finally, create a new media query that sets the width of .wrap to 700px if the viewport is 800px or wider."

This is what I typed in.

@media screen and (min-width: 800px) { .wrap { width: 700px; } }

I am almost sure it's right, but it doesn't work. I tried to refresh it and do it again, nothing.

Can somebody help me, please?

1 Answer

Janek Rezner
Janek Rezner
12,973 Points

hey bro,

your answer is CORRECT and it should work. I just re-took this challenge and it worked. I even copied and pasted your code and it was totally fine for me.

try redoing the whole thing again. just copy and paste this.

@media screen and (max-width: 768px) { body { background: #FF6347; color: white; } } @media screen and (max-width: 480px) { body { background: #4682B4; } } @media screen and (min-width: 800px) { .wrap { width: 700px; } }