I have a page like this:
<body>
<div class="outerdiv">
<div class="someDiv">
<div class="flexible"></div>
</div>
<div class="someOtherDiv"></div>
</div>
</body>
I need to write css and javascript to make this layout take up 100% of the screen by adjusting the size of the flexible div.
I especially appreciate solutions that can handle complex scenarios with flexible div being nested in other divs and the content being a not known in advance.