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 trialBecky Vasick
1,649 Points@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.
2 Answers
Becky Vasick
1,649 PointsUpdate:
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
Courses Plus Student 21,100 PointsHi, Bechy! I think you should try using the background-color: navy; instead of background: navy.
Becky Vasick
1,649 PointsI have that... it doesn't work :(
Jaime Rios
Courses Plus Student 21,100 PointsWhat about using just color: navy; ?
Will Long
5,449 Pointsthat would change the screen to navy
Robert Vaida
8,718 PointsRobert Vaida
8,718 PointsHey Becky
did you somehow forgot the colon ( : ) after min-width property?