I have the following DOM:
<div id="parent" style="height: 200px;">
<div id="header" style="height: 40px;"></div>
<div id="content" style="max-height: 100%; overflow-y: auto"></div>
</div>
This leads to content having a height of 200px
although I want it to be 160px
. Basically the parent div is of variable height and I want the content div to have the height based on it. The header height is fixed.
I cannot use js to solve this, as the actual dom is very convoluted and using JS for it would just make it further complex.