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 How to Make a Website Responsive Web Design and Testing Build a Three Column Layout

Naivedya Bansal
Naivedya Bansal
5,483 Points

Opened my site on a smart phone, but css written for width>=480px is applied but responsive design is working on pc

the responsive design is working on pc when i reside the browser window but on the smartphone it shows the pc layout only.!

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,252 Points

It sounds like you need to include a viewport tag into your HTML.

Put this code into the head element of any page on your site,

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

And it'll force devices to view the site in the device resolution, putting your responsive code into action. :)