I am working on a web application that will be used on iOS devices, both iPhone4 and iPhone5. I developed the application using 5 and everything works and works great, but trying to get it to fit a lower height of 4 doesn't seem to work. Here is what I want to accomplish:

I have a header div at the top, a div heading that contains the image and date, then a list of divs, followed by a footer. All of them are contained in a container named div. I want the header, header and footer headers to remain fixed, and the div list to scroll through the content dynamically loaded into it when loading. The footer should remain at the bottom of the screen, and the list should scroll from under it (if that makes sense).
I set fixed heights for all divs when developing this and it works on my iPhone5, but when I try to set the height of the list list as ((window.screen.height) - header - title - footer) the whole scrolls document, not just the div list. Here I created a lot of trial and error:
#container { min-width: 1280px; position: relative; } #header { height: 140px; width: 100%; } #title { height: 330px; width: 100%; position: relative; } #list { height: 1592px; width: 100%; overflow: auto; -webkit-overflow-scrolling: touch; } #footer { height: 140px; width: 100%; }
source share