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
julianacrispo
4,105 PointsStuck on a question
Next, create a new media query that sets the 'body' element's background color to #4682B4 if the viewport width is 480px or less.
I keep getting that my background color is wrong but it is correct.
@media screen and (max-width: 480px) { body { background: #4672B4; }
What am I doing wrong?
4 Answers
Justin Horner
Treehouse Guest TeacherHello Juliana,
Check your code to ensure that you have closed all your opened brackets.
Hope this helps!
Kevin Jennings
3,630 PointsThe background color you posted says #46*72B4. You stated that it should be #4682*B4. Could that be it?
Johan Hernández
4,141 PointsClose your mediaquery
julianacrispo
4,105 Pointscombination of all three- my mistake. Thank guys.