I have the following CSS problem:
.outer{
height: 100%;
overflow: hidden;
}
.inner{
overflow-y: scroll;
}
<div id="outer">
<div>some dynamic content with unknown height</div>
<div id="inner">
some dynamic content with unknown height
</div>
</div>
So i want the outer div to fit the height of the window, but my inner div should be scrollable. Problem is, i cant give the inner div a fixed height value because it is filled with dynamic content. Overflow-Scroll apparently does need a height value in order to work, which i can't provide. My only (theoretical) limitation to the inner div's height is the outer div. I can't use a height relative to the parents height, because i do not know the height of the divs that come before.