In this example below I cannot find a way using the css flex model to make div B
fill the height of div A
. When flex-direction
is column
the child div still collapses even when no heights are specified.
.A {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
background: #00b;
-ms-flex-direction: column;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
}
.B {
background: #b00;
-ms-flex: 1 1 0%;
-webkit-box-flex: 1;
flex: 1 1 0%;
}
<div class="A">
<div class="B">
I WISH I WAS AS BIG AS MY DAD
</div>
</div>