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 trialBen Martinez
5,383 PointsBreakpoint: 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
Treehouse Moderator 91,253 PointsIt 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
43,828 PointsHey Albino,
You just have a simple syntax error.
There is no ;
after min-width: 480px
. This is a very common mistake to make.
Ben Martinez
5,383 PointsOh I see. Let me go try it I'lll be back soon enough. Thanks. Didn't expect such a quick reply! :)
Ben Martinez
5,383 PointsYou guys can consider this problem solved. Wow. So many dayyys with a syntax error. I feel so drained from it. lol
Jonathan Grieve
Treehouse Moderator 91,253 PointsGreat :-)
You would not believe the number of programming hours lost to a stupid syntax error i haven't seen lol