I tried creating a new Fluids Grid Layout. When I view the page on my iPhone 4S in portrait it displays correctly. But when I tilt it into landscape the page is to wide. So I have to pinch out to get it looking right.
Nothing you are doing wrong or anything wrong with the code. If you search Google for iOS zoom bugs on screen rotation you will see tons of results. Repsonive CSS is still in very early stages, despite the progression of mobile devices. If you started in landscape orientation and loaded the page in that orientation it will look ok. It's just the action of changing the orientation that causes this.
Any idea how to fix it?
I noticed http://gaming.adobe.com/ doesn't have this issue. It's using 960 Grid. Maybe that's the way to go. I know it won't work with the design features in Dreamweaver though.
The script from this site fixed the problem on my iPhone 4S:
if (navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i)) {
var viewportmeta = document.querySelector('meta[name="viewport"]');
if (viewportmeta) {
viewportmeta.content = 'width=device-width, minimum-scale=1.0, maximum-scale=1.0';
document.body.addEventListener('gesturestart', function() {
viewportmeta.content = 'width=device-width, minimum-scale=0.25, maximum-scale=1.6';
}, false);
}
}
North America
Europe, Middle East and Africa
Asia Pacific