views:

65

answers:

1

The following markup is so simple, I'm baffled as to why I'm able to scale in Safari on iPhone 4 when I shouldn't be able to. Any idea what I might be missing, or if this is a bug?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
<html xmlns="http://www.w3.org/1999/xhtml"&gt;
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=640, user-scalable=no" />
<title>Title</title>
<style type="text/css">
<!--
body { padding:0; margin:0; }
-->
</style>
</head>

<body>

<a href="example.html"><img src="splash.jpg" width="640" height="960" alt="Click"></a>

</body>
</html>
A: 

I thought you had to set width to be device-width but I might be wrong.

Paul
You can set anything, as far as I know. I tried device-width, but I'm getting the same problem: I can scale. I found a post on the Apple dev forums that indicate someone else having the same problem as me, but fixed it by restoring. No way I'm doing that.
dallen
Ah, apologies that it didn't help. Good luck!
Paul