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.

CSS Unused CSS Stages Media Queries Media Features and Media Types

Andrew Tuzson
Andrew Tuzson
21,802 Points

I am stuck on media queries first challenge, question 3 of 3. Please help!

This question is asking the following: Finally, create a new media query that sets the width of .wrap to 700px if the viewport is 800px or wider. I have looked at a few forum posts and it seems others have had this issue as well. I don't see anything wrong with my syntax and I would greatly appreciate some assistance. Thank you!

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

2 Answers

Hi Andrew,

It looks like you did not close off your 480px media query right before your 800px media query begins.

Andrew Tuzson
Andrew Tuzson
21,802 Points

That was it! Thank you kindly

Jaco Burger
Jaco Burger
20,807 Points

Try changing the min-width to 799px.