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
Stephen DelBuono
11,264 PointsCSS Foundations ../media queries task 1 of 3
Hello, I am stuck as to why I can't pass this challenge. Help appreciated.
5 Answers
Stephen DelBuono
11,264 PointsCreate a media query that sets the 'body' element's background color to #FF6347 and its text color to white if the viewport width is 768px or less.
Stephen DelBuono
11,264 Points@media screen and (max-width: 768px) body { background: #FF6347; color: white; }
Stephen DelBuono
11,264 PointsI got my own question! I should get points for self sufficiency!
James Barnett
39,199 Points> I should get points for self sufficiency!
I agree! Learning to answer your questions is really a necessary step in becoming a professional.
William Whitworth
6,117 Points@media screen and (max-width: 768px){ body { background: #FF6347; color: white; }
You forgot the curly bracket after @media screen and (max-width: 768px)
Stephen DelBuono
11,264 PointsWilliam I had already fixed my code an hour before, but thanks....
William Whitworth
6,117 PointsI'm aware, I just wanted to provide the solution to anyone else who may have the same issue and venture into this post.
James Barnett
39,199 PointsWilliam Whitworth - Remember our goal here on the forum is give help not answers, next time try giving an explanation and/or a hint instead.
Need more explanation on the distinction check this out.