after researching the flexible box model for a whole day, I must say I really like it. It implements the functionality I implement in JavaScript in a fast and clean way. One
I've been wrestling with this myself, but have finally managed to come up with a solution.
See this jsFiddle, although I have only added webkit prefixes so open in Chrome.
You basically have 2 issues which I will deal with separately.
position:relative;
on the parent of the child. position:absolute;
on the child.overflow-y:auto;
on the scrollable div. height:0;
See this answer for more information on the scrolling issue.