Created
June 11, 2013 09:37
-
-
Save ghooghe/5755662 to your computer and use it in GitHub Desktop.
html meta tags for better rendering on IE, mobile and others
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- Always force latest IE rendering engine (even in intranet) --> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
| <!-- Mobile Viewport Fix | |
| j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag | |
| device-width : Occupy full width of the screen in its current orientation | |
| initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height | |
| maximum-scale = 1.0 retains dimensions instead of zooming in if page width < device width | |
| Adding "maximum-scale=1" fixes the Mobile Safari auto-zoom bug: http://filamentgroup.com/examples/iosScaleBug/ | |
| --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
| <!-- Hide the browser decoration whenever web page is bookmarked on IOS --> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment