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

Martin Forbes
PLUS
Martin Forbes
Courses Plus Student 4,750 Points

HELP Stuck on Media Queries code challenge

PLEASE PLEASE HELP ME...!!

I've finally made it to stage 13 in the CSS Foundations and on the first code challenge task 3 of 3 I simply can't get it to pass... :(

All I keep getting is: 'Bummer! Did you specify the right width?' which I have done, even changed the values around yet STILL it won't pass.

The question is: Finally create a new media query that sets the width of .wrap to 700px if the viewport is 800px or wider. Here is my code so far.... PLEASE help it's driving me nuts.

Thanks.

@media screen and (max-width: 768px) { body { background-color: #FF6347; color: white; } }

@media screen and (max-width: 480px) { body { background: #4682B4; }

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

2 Answers

Dennis Skoko
Dennis Skoko
12,860 Points

At the second media query you forgot to end it with a ending curly bracket. :)

Martin Forbes
PLUS
Martin Forbes
Courses Plus Student 4,750 Points

OH WOW, OH WOW OH WOW...

Thank you SO much Dennis, I can't believe I never noticed that at al.. again thanks you SO very very much.