I am developing a small mobile page which supposed to be visible only for mobile devices.
But it should fit all Android & iPhone devices and their resolutions.
The template includes table and couple of images which should shrink in percentage in relation to the ratio of resolution change
what i basically need is a tip for smart CSS code which will consider the resolution and will pick from couple of different stylesheets i will create.
You can detect exact device using JS and generate stylesheet link for it.
Or detect all mobile devices using Media Query
max-device-width:Notice that I set
max-device-widthto480px. This is because of mobile devices screen measurements, it’s in reference pixels which is bigger than actual device pixel.For example both iPhone 3 and 4 has device width
320pxin both landscape and portrait modes. Some Android devices returns device width480px.