Home:ALL Converter>stick scrollable div to bottom of screen

stick scrollable div to bottom of screen

Ask Time:2015-08-28T23:42:37         Author:user1126515

Json Formatter

I've got a cordova app using jquery, jquery-mobile, iscroll and iscrollview

I'm not exactly committed to any of these tools.

I've got the jquery-mobile header/footer stuck to the top and bottom of the screen just fine.

I have a scrollable div between the header and footer. It will contain variable amounts of data. Sometimes the data will be less than the height of the div and sometimes it will be greater (hence the scrolling)

Here's the tricky part. I want to stick the bottom of the scrollable div to the top of the footer. When I add stuff to the div i want the most recently added closest to the top of the footer so the top of the scrollable div looks like its growing upwards towards the bottom of the header as data is added.

Once the top of the scrollable div is fille by its content then i want to be able to scroll it.

Has anyone been able to achieve something like this?

Author:user1126515,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/32274891/stick-scrollable-div-to-bottom-of-screen
yy