It is simple as this:
Two bars on top,
then content window,
then one foot bar followed by a logger window at the bottom.
I want the 5 div's height all together add up to 100vh - meaning there will be no scrollbar on the right side of a browser.
So I arranged each div's dimension by a constant or a variable:
body{
--ftheight: 6.5em;
--navheight: 1.5em;}
#header{height: 1.5em;}
#nav{height: var(--navheight);}
#main{
top: calc( 1.5em + var(--navheight) );
bottom: var(--ftheight);}
#footer{
bottom: 0;
height: var(--ftheight);}
#footbar{height: 1.5em;}
#logger{height:inherit;}
I played a lot of combinations, position:relative, position:absolute, position:fixed, but All of them result in an overflow total with a browser scrollbar, or two bars with one at the bottom!
I also tried flexbox, with flex-grow:none and flex-grow:1, which did not work either.
So in the world of CSS, 1+1>2!
common.css
two_sections.html