Assume we have following markup
<div id="parent">
<div id="header">
</div>
<div id="content">
</div>
</div>
header
div is variable-sized, so we don't know what exact offset gets the second one. We want to accomplish two following objectives:
The second div should never overflow its parent. If overflow occurs, the scrollbar appears.
It should be done in pure-CSS manner, for IE9+ if possible.
I have been thinking that this task is pretty easy, really, I just want my div to be non-overflowing, that's all, but I found that it's not possible even with flexbox.
When i say overflow
I mean vertical overflow, because they all are of the same width.