Given the following snippet: http://jsfiddle.net/8wy1mku2/
.black {
width: 200px;
height: 100px;
background: black;
}
.grey {
width: 180px;
height: 100%;
background: grey;
}
.red {
width: 160px;
height: 20px;
background: red;
}
.blue {
width: 140px;
height: 100%;
background: blue;
}
<div class="black">
<div class="grey">
<div class="red">red</div>
<div class="blue">blue</div>
</div>
</div>
How can I make the blue child with height 100% respect the space of the red child?
I want the blue box to automatically resize to be of size 100% minus the size of the red box.
Please help!