Looking to create a box that matches the height of the entire page, live height minus another dynamic div called #wrapping
. I have code that offsets it instead of removing the height of the div...
function adjustBoxHeight() {
var viewPortHeight = $(window).height();
$('#box').height(viewPortHeight - $('#wrapping').offset().top);
}
window.onload = adjustBoxHeight; // Runs on page load
window.onresize = adjustBoxHeight;
The goal is to subtract the height of #wrapping
from its own height. Let me know if this is a simple question! :)