Currently, I am experimenting with JavaScript in order to achieve a website section that is 100% the height of the screen minus the "nav" bar.
Imagine it as having two visible components - the first one being large and the second one small at the bottom.
The CSS code for this is:
#mainHeader{
height: 100vh;
}
#nav{
height 90px;
}
I have implemented this functionality using JavaScript/jQuery and it kicks in during the body's onload event.
<body onload = "function()"> </body>
var mainHeaderHeight = $("#mainHeader").outerHeight(true) - $("nav").outerHeight(true);
$("#mainHeader").css("height",mainHeaderHeight + "px");
This results in the following visual appearance: