I am creating an ios/android app with phonegap(cordova) framework. My UI code is little bit lacking in horizontal orientation. So, I want to change the look and feel only for horizontal orientation and not for vertical. Is there a condition which i can apply in index.html to achieve this, preferrably in javascript/jquery. Thanks in advance.
I am creating an ios/android app with phonegap(cordova) framework. My UI code is little
Share
You can create an event listener for the event onOrientationChange() in which you can probably change the css file which applies in a particular orientation.
Now attach the event listener in your javascript file or your script tag
Implement the OnOrientationChange function which actually changes the css files according to the orientation