I am trying to have a 3 pane layout for my web page. The header would always stay on top even on page scroll and will have a fixed height.
The footer will have a fixed height and would stay on bottom but will not be fixed to view port's bottom whenever page is scrolled, I mean if the center area content exceeds in height, footer can move down and not stick to view port bottom.
The middle content area will adjust itself automatically upon window resize so that it takes on all the remaining left over space fully.
Better if this is done with flex CSS or fine if some other approach is good. I have tried it myself with flex but if the center area's content is varying in height then upon window resize whole layout behaves weird. See attached pic for a rough idea.
Please if you answer this question, do provide some working fiddle.