Is there a way to get a div to always be at the bottom of the window, and another div to change its height to fill any space that it leaves, and that div will scroll if its
You can use the following solution to get the orange div to do what you want:
div
if ( ( $('.container-with-footer').height() ) < ( $(window).height() ) ) { $('footer').css({ "position":"absolute", "left":"0", "right":"0", "bottom":"0" }) }