Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Width and height of the Safari in iPad?

Width and height of the Safari in iPad?


I want a div to have the size of the iPad screen. The size of the iPad is 1024 x 768. Then I have to resize to rest the address bar. So it is 946 x 768. I tested in my iPad and the div is bigger than the screen. Here is a very simple example:www.mig-marketing.com/proves


What is wrong?



Thank you


Narcís

Posted on Jul 9, 2011 9:36 AM

Reply
2 replies

Jul 9, 2011 11:44 AM in response to NarcisMG

Safari seems to force a little whitespace at the top & left. The top margin is slightly larger than the left one. It also automatically shrinks the view in portrait mode.


Try these sizes which fill the screen with no zoom or scrolling required:

964x630 Landscape - balanced vertically & horizontally

964x636 Landscape - even around three sides

964x1176 Portrait - balanced vertically & horizontally

964x1184 Portrait - even around three sides


Judged by eye so they might be one or two pixels out...

tt2

Jul 10, 2011 5:06 AM in response to turingtest2

Thank you for your answer. But I don't understand:


The question is not the margin. I put in the body margin: 0; padding:0; and there is no margin.


I want to know the viewport: the width and height with the iPad in horizontal position and without the address bar.


This does not coincide with the 1024 x 768. (nor the 946 x 768 if I rest the address bar). I don't understand why


Thank you


Narcís

Width and height of the Safari in iPad?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.