As the title asks... Is there a way to have this update with browser resize rather than refresh alone?
$(document).ready(function() {
$("#footer-container").css({'height':($("#footer").height()+'px')});
});
As the title asks... Is there a way to have this update with browser resize rather than refresh alone?
$(document).ready(function() {
$("#footer-container").css({'height':($("#footer").height()+'px')});
});
use .resize()
$(window).resize(function(){
$("#footer-container").css({'height':($("#footer").height()+'px')});
});
Attach an event handler to the window object for the resize event.
$(window).on('resize', function() {} );