Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS CSS Basics (2014) Enhancing the Design With CSS Media Query Basics

I had entered the Media Query and the colors are not showing when I resize my browser window with the preview.

Here was the code I was instructed to add to the style.css in workspace

/* Media Queries -------------------- */

@media (max-width: 960px) { body { background: royalblue; } p { color: white; } }

When I go to resize my preview window like the video instructed I do not see the royal blue color. Is there something that I am missing?

Thank you

brandon baily
brandon baily
1,553 Points


This should work. I have tried it just how you done it there and it worked fine. :S

Michael Lee
Michael Lee
Courses Plus Student 999 Points

i just spent the past 20 minutes swearing i would never do anything with coding again because its dumb only to realize i was missing a closing bracket after my wildlife class....angry me had to make a begrudged apology to rational me....maybe its something small like that

1 Answer

Steven Parker
Steven Parker
217,626 Points

You might need to show all the code. This bit seems OK, but there could be something else inhibiting it.

You could make a snapshot of your workspace and post the link to it here.