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.

HTML How to Make a Website Responsive Web Design and Testing Write CSS Media Queries

Breakpoint: Min-width: 480px;

Challenge: Create a breakpoint for devices 480 pixels wide or larger. Inside the breakpoint, set the body background to the color navy.

@media screen and ( min-width: 480px; ) { body{background-color: navy;} }

What am I doing wrong here? No matter the variation I haven't been able to get through this.

4 Answers

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

It looks like you put a semi colon in the breakpoint declaration. It's not needed and is probably what's breaking your media query. :-)

Calvin Nix
Calvin Nix
43,828 Points

Hey Albino,

You just have a simple syntax error.

There is no ; after min-width: 480px. This is a very common mistake to make.

Oh I see. Let me go try it I'lll be back soon enough. Thanks. Didn't expect such a quick reply! :)

You guys can consider this problem solved. Wow. So many dayyys with a syntax error. I feel so drained from it. lol

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 90,705 Points

Great :-)

You would not believe the number of programming hours lost to a stupid syntax error i haven't seen lol