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

Ray Mak
Ray Mak
4,667 Points

Why is my site not looking responsive in mobile browser?

Hello,

I am having issue with responsive site issue in any type of browse. On desktop I can resize the browser and it is responding to the browser width size, etc. However, when I view it from my desktop, I am unable to view my site with responsive. It is showing me full desktop browser. My site is rahil.me.

Thanks,

Ray

2 Answers

I think I was having the same problem. Try to add the following code:

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

It will force the browser to use the native scale for the device.

Good luck!.

Ray Mak
Ray Mak
4,667 Points

Thank you Juan.

Now I realized that I was the above was mentioned in one of the view by Nick.

Thanks,

Ray