If I use max-device-width does that include landscape mode?
Say I use it to detect iPhone 4, should I use max-device-width: 640px or 960px? I need to get 3 resolutions: 480x320, 960x640 and 854x480. What would be the best way to query for them using @media
My take was:
@media screen and (max-device-width: 480px) {}
@media screen and (min-device-width: 481px) and (max-device-width: 854px) {}
@media screen and (min-device-width: 855px) and (max-device-width: 960px) {}
Here is some Css to help you:
Have a read through this link it should solve your problem
http://davidbcalhoun.com/2010/using-mobile-specific-html-css-javascript