Help get this topic noticed by sharing it on Twitter, Facebook, or email.

iOS screen orientation via media queries

I am trying to dynamically change css style based on screen orientation.
Android works without problems, but iOS don't react on orientation change.
Since orientation change support for iOS is new I think that's phonegap bug.
(Tested on Android 2.2 and iOS 4.1)

This is part of my code:

@media only screen and (orientation:portrait) {
.top {
background: red;
}
}
@media only screen and (orientation:landscape) {
.top {
background: pink;
}
}

Thank you for every response.
2 people have
this problem
+1
This topic is no longer open for comments or replies.