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


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; } }