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 trial

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

Inna Nesterenco
Inna Nesterenco
1,331 Points

breaking point

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


@media screen and (min-width: 660px) {
  body {
    background: darkgreen;
  }
}

4 Answers

Hi 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.

Inna Nesterenco
Inna Nesterenco
1,331 Points

it 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
PLUS
Qichao Li
Courses Plus Student 15,694 Points

I think Dustin may get to the point. But when I try your solution on Safari, It also worked.