Is possible to achieve design I wanted below?
With conditions:-
- container position:absolute to stick it to bottom of page
- container max-height:50%
- body div is scroll-able without fixed height while page is not scroll-able
I want to toggle body div visibility by clicking in header so header div will stick to the bottom of page.

What I've tried:-
.container {
max-height: 50%;
bottom: 0;
position: absolute;
overflow: hidden;
// this makes .body div not scrollable
// when this set to auto, header div will also scrollable
}
.content-body {
height: 100%;
overflow: auto;
}
Here's fiddle I created:- https://jsfiddle.net/vwoz8rr5/1/
If this is not possible or there are a better approach, I would like to know.
I would like to provide necessary information if needed.
Thank you in advance.