Website does not automatically fit to iphone screen

Posted by Ploetzeneder on Stack Overflow See other posts from Stack Overflow or by Ploetzeneder
Published on 2010-04-20T07:21:56Z Indexed on 2010/04/21 5:43 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
|

Hello, The following code does not fit onto the iphone screen; how do I have to define the viewport?

<html>
<body>
<center>
<div id="karteu" style="background: url('../customer/Karten/karte1.jpg') no-repeat left center;width:714px;height:540px;" >
</div>
</body>
</html>

Normally the site should be zoomed, so i first should see the website in small, and then be able to zoom that i see it in the original size, but in my case it does not, when i call the site, the zoom is, that the image has this original size already, and that i have to scroll, but i dont want to scroll,...i want to use the normal safari mobile zoom and then scroll

The solution at the bottom does not zoom anything. I want to see the overview of the image at the beginning. Then i want to be able to zoom with the normal safari zoom functions,..

© Stack Overflow or respective owner

Related posts about iphone

Related posts about webkit