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

@media query. I'm not sure why I keep getting errors.

I am getting the bummer response once again asking if I've changed the background color to navy. This is what I've typed

@media screen and (max-width: 480px) { background: navy; } maybe it's placement.

Also a question about course management. When I go back to the course I often find myself back to where I started from the previous day. How do I save my place in the track (book mark)?

Wayne Priestley
Wayne Priestley
19,579 Points

Your position in the track should auto save, I'm not sure why it isn't.

2 Answers

Hi Gabrielle,

you are not specifying any elements to set background color for

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

check your question again, it will tell you what element to work with, then add it inside @media section

for example:

@media screen and (max-width: 480px) {
   body {
      background: navy;
   }
}
Ron McCranie
Ron McCranie
7,837 Points

You're missing a selector. It asks to change the background of the 'body' to navy. You've got the background to navy part and the media query part but missing the part that tells it to apply the color to the 'body'. Hope that helps.

P.S. I made the same mistake a couple times before I figured it out.

Thank you