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!

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

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
MOD
Jonathan Grieve
Treehouse Moderator 91,250 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 91,250 Points

Great :-)

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