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

Background color won't change, with the @media query.

The responsive colors seems not to be working I tried a lot of different ways and reloading the page, etc.. Here is my code. this is the head.

<html> <head> <meta charset="utf-8"> <title>Nick Pettit | Designer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400,400italic,700,700italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> </head>

and here is responsive.css

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

this is main.css referring to the background-color

***************/ /*site body/ body{ background-color:#fff; color:#999; }

3 Answers

Max Solomin
Max Solomin
4,618 Points

Did you move your responsive.css to a css folder?

I guess is was a bug I refreshed again for the 100th time and wow it worked!!

yes it was there the entire time.