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

HTML How to Make a Website Responsive Web Design and Testing Write CSS Media Queries

Media query trouble

No matter what I do I am not able to make my media queries work when I adjust my browser screen size. I believe that I am following instructions verbatim and I was able to pass the challenge tasks. Is it possible my browser is to blame? Thanks!

2 Answers

Hayden Taylor
Hayden Taylor
5,076 Points

Could you post your code?

I bet the problem is because you are forgetting to add

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

to the head of your html file.

This meta tag allows for media queries to scale based on screen size.

I've actually since figured it out. There seemed to be some lag between when I was saving and refreshing because it's all kosher now. I've got to be more patient! Thanks, Hayden.