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 trialGabrielle Doyle
842 Points@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)?
2 Answers
Muhammad Mohsen
Courses Plus Student 10,843 PointsHi 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
7,837 PointsYou'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.
Gabrielle Doyle
842 PointsThank you
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsYour position in the track should auto save, I'm not sure why it isn't.