Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What resolution should a mobile website be optimized for?

I'm having trouble understanding how the mobile resolution works. From what I know, standard website mobile resolution is 320px width. The problem seems to be with iPhone 4, which seems to have 640px width screen resolution, but yet, it displays web in 320px.

What is the solution here? Do I code 2 different resolutions for 320px and 640px screens? How do I force iPhone 4 to display 640px web?

like image 213
Frantisek Avatar asked Feb 19 '12 13:02

Frantisek


2 Answers

Well basically, as you've noticed, iPhone 4+ resolution is 640px, but the browser only displays 320px of it, for a number of different reasons. Check this other answer for more details on how this is happening:320px resolution for web apps

That also talks about the fact that you can specify the viewport for a website to force it to be seen in 640px on an iphone, but that you shouldn't do that, but just double the resolution on the image you use.

like image 152
Cosmin Atanasiu Avatar answered Sep 25 '22 02:09

Cosmin Atanasiu


I have found websites with a minimum width of 320px will look good on most high-end mobile devices like the iPhone, Android and Nokia N97.Some of the screen resolutions of most popular devices:

"iPhone 320 x 480"

"iPhone 4 320 x 480 (scaled by a factor of 2)"

"HTC Legend 320 x 480"

like image 21
paul thomas Avatar answered Sep 22 '22 02:09

paul thomas