tags:

views:

34

answers:

1

So this declaration works fine for iOS 4 and 4.1, but not for older versions. Any advice?

@media screen and (device-width:320px) and (orientation:portrait) {
    /* iPhone Portrait Styles Here*/
}

@media screen and (device-width:320px) and (orientation:landscape) {
    /* iPhone Landscape Styles Here*/
}
A: 

we use javascript to do this, in a similar way to this:

http://stackoverflow.com/questions/2323281/can-js-jquery-determine-the-orientation-of-the-iphone

Oren Mazor