Codesnipp.it Social Code Sharing

Amber Weinberg

Scaling On iPhone Without Zooming In on Landscape or Out in Portrait

by Amber Weinberg on Sep 19, 2011

This displays the iPhone portrait view correctly, but then zooms in way too much when rotating to landscape: <meta name="viewport" content="width=device-width, initial-scale = 1.0"> This shows the landscape correctly, but zooms out way too much when rotating to portrait. <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0;"/> Any ideas how to get them to look right in both views?

Can't see the comments? Please login first :)