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

CSS Foundations ../media queries task 1 of 3

Hello, I am stuck as to why I can't pass this challenge. Help appreciated.

http://codepen.io/AcesUp/pen/Cxfqu

5 Answers

Create 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.

@media screen and (max-width: 768px) body { background: #FF6347; color: white; }

I got my own question! I should get points for self sufficiency!

> I should get points for self sufficiency!

I agree! Learning to answer your questions is really a necessary step in becoming a professional.

@media screen and (max-width: 768px){ body { background: #FF6347; color: white; }

You forgot the curly bracket after @media screen and (max-width: 768px)

William I had already fixed my code an hour before, but thanks....

I'm aware, I just wanted to provide the solution to anyone else who may have the same issue and venture into this post.

William 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.