If you load this in IE, you will see that the content of the gray box is extending over to the yellow box, which doesn't happen on other browsers.
.parent {
display: block;
position: relative;
border: 1px solid black;
height: 300px;
width: 200px;
display: flex;
flex-flow: column;
}
.childA {
display: block;
background-color: grey;
width: 100%;
height: auto;
}
.childB {
display: block;
background-color: yellow;
width: 100%;
height: 100%;
overflow: auto;
}
<div class="parent">
<div class="childA">
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
aaaaaaaaaaaaaaa
</div>
<div class="childB">
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
bbbbbbbbbbbbbbb
</div>
</div>
What I am trying to achieve is:
let the gray box (childA) expand according to its content
let the yellow box (childB) take the remaining height of its parent
if the content yellow box (childB) has more content, overflow it properly
Can someone help me?