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

HTML How to Make a Website Responsive Web Design and Testing Adding Breakpoints for Devices

Nick Tsamis
PLUS
Nick Tsamis
Courses Plus Student 4,267 Points

i have problem with my site layout

my media queries are not working

responsive.css

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

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

and my index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Nick Tsamis | Web Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href="https://fonts.googleapis.com/css?family=Changa+One:400,400i" rel="stylesheet"> <link rel="stylesheet" href="css/responsive.css"> <link rel="stylesheet" href="css/main.css">

</head>

2 Answers

Brian Jensen
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree seal-36
Brian Jensen
Treehouse Staff

You have both break points set to break at 480px.

Change the second one to 660px.

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