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 Responsive Web Design

Dhanur Grandhi
Dhanur Grandhi
912 Points

Mobile version showing up on desktop but not on mobile

This is what my site looks like on Chrome on Mac (resized to smallest width) - http://cl.ly/image/3P2L1q282f2Q

But this is what the site looks like on Chrome on iOS - http://cl.ly/image/0N3G2d2M1v41

It somehow brings up the desktop version on iOS .. any idea what the problem might be?

1 Answer

The first thing to check for is the devise viewport size on iPhone 5s it's 320px and landscape 568px. Depending how you set up your media queries it's possible that you may not have the correct max or min size correct. Also check make sure your meta tags are correct in some cases if they are not included or wrong your media queries will not display correctly on some devises. Try using this meta tag if your not already using it. It will make sure to check the devise actual full size and by adding the initial scale to 1 you prevent browsers from scaling your page. If this does not help you can post your code on codepen or here it may be something else.

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