reasonable defaults that work well for most webpages Why configure the viewport? e.g. The default width on Mobile Safari is 980 pixels 320 x 356 pixel image Image source: Safari developer reference library Sunday, April 22, 12
viewport width to the width of the device To set the initial scale to actual size To set the initial scale and to turn off user scaling <meta name="viewport" content="width=device-width, user-scalable=no"> Using the Viewport meta tag minimum-scale (0 to 10.0) maximum-scale (0 to 10.0) To control user scaling Image source: Safari developer reference library Sunday, April 22, 12
when launched from home screen) <meta name="apple-mobile-web-app-status-bar-style" content="black" /> Control the appearance of the status bar in full-screen mode spoiler alert No browser back/ forward buttons Sunday, April 22, 12
screen and (-webkit-min-device-pixel-ratio: 2) Retina / XHDPI HDPI @media only screen and (-webkit-min-device-pixel-ratio: 1.5) @media screen and (orientation:portrait) @media only screen and (max-width : 319px) @media screen and (orientation:landscape) Sunday, April 22, 12
on an element a {-webkit-tap-highlight-color:rgba(0,0,0,0);} Prevent users from selecting text html {-webkit-user-select:none;} Prevent the callout toolbar html {-webkit-touch-callout: none;} Sunday, April 22, 12