What I\'m looking for is to have a container div with any number of headers and footers which would then have another scrolling div in between the
As stated by Matt Cooper, I don't think there's a css pure solution. Here's my attempt: jsfiddle
var CalcHeight = function() {
this.init = function() {
var totHeight = $('body').height();
var componentsHeight = $('.headers').height() + $('.footers').height();
var diff = totHeight - componentsHeight;
$('.hider').css({
height: diff
});
}
this.init();
}
var calcHeight = new CalcHeight;