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

Hay,

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
231,275 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.