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 Adding Breakpoints for Devices

@media and (min-width 480px) is not working like Nick Pettit's.

I am following along with Nick, and I have come to the point where I am supposed to add responsive.css and then in there, add @media and (min-width 480px) I have been following very closely, checked, double checked, and triple checked my work, and still my changes do not show up when I make my screen bigger like they do on Nick's.

<link rel="stylesheet" href="css/responsive.css"> This is the code on my index.html

@media screen and (min-width 480px) { body { background: navy; } } This is the code on my responsive.css

The background doesn't change to navy when I make the screen bigger.

Robert Vaida
Robert Vaida
8,718 Points

Hey Becky

did you somehow forgot the colon ( : ) after min-width property?

2 Answers

Update:

I deleted all that I had written, including the new file, and just redid the whole thing, and blam... it works. I cannot say what I did differently, I must have had a typo or something somewhere that I just couldn't see.

Thank you Jamie for trying so hard to help. I did try all your suggestions, but they didn't work, and i'm guessing because of this typo...

That was highly frustrating to say the least!!!! But I am glad I can move on now.

Jaime Rios
PLUS
Jaime Rios
Courses Plus Student 21,100 Points

Hi, Bechy! I think you should try using the background-color: navy; instead of background: navy.

I have that... it doesn't work :(

that would change the screen to navy