Skip to content

Instantly share code, notes, and snippets.

@ivolivares
Forked from incompl/gist:1048678071ecfb280a5f
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save ivolivares/431b033d17354483b60d to your computer and use it in GitHub Desktop.

Select an option

Save ivolivares/431b033d17354483b60d to your computer and use it in GitHub Desktop.
<meta name="viewport" content="width=device-width">

By default, phone browsers say "well crap, I'm, like, 320 pixels wide, and many websites were designed to be, like, 960 pixels wide, so I'm going to just scale down the content to 1/3 and show it that way."

By using the above meta tag, your website says "No no no, if your screen is tiny that's fine, just show this page like a 320 pixel wide browser and don't scale anything."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment