How do I get a div wrapper that is 100% height to expand it with the height of my children? It is also 100% high.
The setup is as follows:
<div id="wrapper" style="height:100%"> <div class="child" style="height:100%">div1</div> <div class="child" style="height:100%">div2</div> </div>
But the wrapper does not expand to 200% of the height. I tried to make a wrapper min-height:100%; , but then the children do not inherit the entire height, but only the height of their own content.
https://jsfiddle.net/on78pof8/
(box with watercolors, not expandable)
source share