Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If stupidly on the forehead, then this:
CSS
nav-bar should be absolutely positioned, one on top, the other on the bottom
#content { position: absolute; left: 0; top: 0; }
JS
hOfWindow = find out window height, do parseInt [ like parseInt($(window).height()); ]
hOfTopElement = height of top nav-bar, do parseInt
hOfBottomElement = height of bottom nav-bar, do parseInt
Block grid in between => id = #content
$('#content').css('height', hOfWindow - hOfTopElement - hOfBottomElement );
$('#content').css('top', hOfTopElement);
And everything will be in its place)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question