Does stating
<meta name="viewport" content="width=device-width" />
have the same effect as stating
<meta name="viewport" content="width=768" />
for the ipad?
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.
It depends indeed on the orientation of the device: setting a specific pixel value will cause your layout to be scaled up with a factor of 1.333 to fit inside the 1024px device width when in landscape mode.
Setting
width=device-widthon the other hand will not scale anything up, but change the viewport width, for which you then can craft an optimized layout using media queries. Or that is at least the theory: the iPad somehow interpretswidth=device-widthas 768px even in landscape mode. In order to get the real device width, you have to add initial-scale=1.Hence, I disagree with James’ suggestion. Just go for:
and deal with size differences using liquid / responsive layout techniques.