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 trialInna Nesterenco
1,331 Pointsbreaking point
@media screen and (min-width: 480px) {
body {
background: navy;
}
@media screen and (min-width: 660px) {
body {
background: darkgreen;
}
}
4 Answers
Dustin Matlock
33,856 PointsHi Inna, it looks like you were missing a closing bracket in your first media query.
@media screen and (min-width: 480px) {
body {
background: navy;
}
}
@media screen and (min-width: 660px) {
body {
background: darkgreen;
}
}
P.S. I corrected the typo in the post's title, and fixed code highlighting for you.
Qichao Li
Courses Plus Student 15,694 Pointstry max-width
Inna Nesterenco
1,331 Pointsit doesnt work. here is the question
After the first breakpoint, create a second breakpoint for devices 660 pixels wide or larger. Inside the breakpoint, set the body background to the color darkgreen.
Qichao Li
Courses Plus Student 15,694 PointsI think Dustin may get to the point. But when I try your solution on Safari, It also worked.
Inna Nesterenco
1,331 PointsInna Nesterenco
1,331 Pointswhy is it not working