I am attempting to design a web layout similar to Facebook's Messages page, with a fixed height header and footer, and a flexible height main element.
Within the main element, there needs to be:
- A div (100% height of the main elem.) that is scrollable when overflow occurs
- A div (100% height of the main elem. minus the div below) that is also scrollable when overflow happens
- A div with a fixed height below the second one, positioned at the bottom of the main elem.
https://i.sstatic.net/qK7bN.png
I have created a basic layout using flexbox, but I'm unsure about those specific divs.
Here is a pen: http://codepen.io/anon/pen/GJLOrL?editors=110
Apologies for any language errors
enter code here