This is what I have:
This is what I want:
So the whole content of 'Container 5' should be visible without scroll. The height of 'Container 2' should be only dependent on the height of 'Container 5'. 'Container 4' should be scrollable if it has more content than 'Container 5'. The content of 'Container 5' is dynamic - I don't know it's height. 'Container 3' should fulfill the whole available screen space at the bottom.
This is code:
https://jsfiddle.net/antonfil/5kd1gnou/13/
Any ideas how to do it?
JavaScript solutions are fine but it's also interesting if it is possible to achieve it with pure CSS.


