I need to change style on a page depending on if it's a handheld device (such as a cell phone) or a large screen device, such as a laptop, stationary pc or a tablet.
I know I could detect the resolution by the css max-width query and alike, but that does not feel convincing. Mainly because today's smartphones have such high-res screens. I.E. the Sony Xperia S, it has got a 720p by 1280 screen, but it's only 4,3". Whereby a 10px font, which on a normal computer screen would be readable, will become too small to read.
Therefore I need to know a bit more than just the resolution to know whether it is a small screen device or not. (and I assume the media="handheld" css style is the way to go. Please correct me if I'm wrong).
So: what parameters does the css media type "handheld" care about?
- Device screen size?
- Browser window size?
- Bandwidth?
- Is the information whether the device is "handheld" or not just a parameter that's passed by the client?
- Are tablets included as "handheld" devices?
etc.
Thank you!