I'm trying to get .boxes-inner
to be the same height as .boxes-outer
so that the .box
elements fill the height equally but I can't seem to make it happen.
Here's my attempt on codepen: http://codepen.io/anon/pen/LEWJQr
What am I doing wrong?
div {
border: 3px solid;
margin: 3px;
padding: 3px;
}
.row {
display: flex;
height: 100%;
}
.col {
display: flex;
flex-direction: column;
align-items: center;
align-content: center;
height: 100%;
}
.cell-1 {
flex: 1;
}
.box {
min-height: 25px;
min-width: 25px;
}
.content {
border-color: blue;
}
.boxes-outer {
border-color: green;
min-height: 250px;
}
.boxes-inner {
border-color: red;
height: 100%;
}
<div class='row boxes-outer'>
<div class='col boxes-inner'>
<div class='cell-1 box'>1</div>
<div class='cell-1 box'>2</div>
<div class='cell-1 box'>3</div>
<div class='cell-1 box'>4</div>
</div>
<div class='cell-1 content'>
Content area
</div>
</div>