Does anyone know the safest width and height for the BODY when viewing any web page on the iPad? I want to avoid the scrollbars as much as possible.
Thanks.
Erik
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The pixel width and height of your page will depend on orientation as well as the meta viewport tag, if specified. Here are the results of running jquery’s $(window).width() and $(window).height() on iPad 1 browser.
When page has no meta viewport tag:
When page has either of these two meta tags:
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width"><meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1">With
<meta name="viewport" content="width=device-width">:With
<meta name="viewport" content="height=device-height">:With
<meta name="viewport" content="height=device-height,width=device-width">:With
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width,height=device-height">With
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,height=device-height">