I am working with jQuery mobile and have specific requirements for my project:
- The main content will be a large graphic that needs to fill the entire page, with both horizontal and vertical scrolling if necessary.
- The header should remain fixed at the top, expanding to fit the screen when rotated.
To achieve this, I added a div within my ui-content
div
, with the following properties:
<div style="position: absolute; height: 100%;width:100%;top:42px;border:0;overflow:auto;">
However, the div ended up being too large, causing dual vertical scrollbars (one for the body and one for the div).
View my current setup on JSFiddle (two vertical scrollbars, one horizontal scrollbar):
Here is an illustration of the desired outcome: One vertical scrollbar and one horizontal scrollbar.