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
Juliet DeAmicis
2,042 PointsQuiz functions correctly, but it says my answer is wrong (media queries)
Next, create a new media query that sets the body element's background color to #4682B4 if the viewport width is 480px or less.
@media screen and (max-width: 768px) { body{ background: #FF6347; color: white; }
@media screen and (max-width: 480px) { body{ background: #4682B4; }
When I shrink the browser, it shows that I did it, but the test says my background color is wrong.
2 Answers
Yaswanth Goli
6,872 Points@media screen and (max-width: 768px){
body{
background-color:#ff6347;
color:white;
}
}
@media screen and (max-width: 480px){
body{
background-color:#4682b4;
}
}
Yaswanth Goli
6,872 Pointsits working
Juliet DeAmicis
2,042 PointsJuliet DeAmicis
2,042 PointsI'm soo sorry, I didnt realize that it posted so many times! My computer is glitching a bit.