I have to add image on the header and background . Is it possible to set the image automatically resizing according to the screen orientation (portrait and Landscape). I set the image in portrait resolution , But when i change the screen to Landscape the image not resized. Can anyone give me some guidelines?
Support for this is built into jQuery Mobile. There are two Orientation Classes which are present depending on the current screen orientation:
.portrait {
/* portrait orientation changes go here! */
}
.landscape {
/* landscape orientation changes go here! */
}
Or if you want a javascript event you can bind to orientationchange.