Flexbox layout test
by stopsatgreen
HTML
<div class="container">
<div class="a"></div>
<div class="b"></div>
<div class="c"></div>
</div>
CSS
.container {
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 400px;
width: 400px;
}
.a, .b, .c {
flex: 1;
min-height: 50%;
}
.a { min-height: 100%; }
/* Alt layout */
.alt { flex-direction: row; }
.alt .a {
min-height: initial;
min-width: 50%;
}
.alt .c { min-width: 100%; }
/* Decorative BS */
.a { background-color: red; }
.b { background-color: yellow; }
.c { background-color: brown; }