I'm specifically looking for a grid of 2 rows - row1 having 2 columns, row2 having 3 columns where each column/row (ie.item in the grid) is equally sized. It works using an empty div but obviously this isn't the preferred solution....
I've included some basic example html / css to show what I mean but I would like to achieve something like this without the use of the empty div....
CSS
html, body {
height: 100%;
margin: 0;
}
.grid {
min-height: 100%;
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
.grid > div {
display: flex;
flex-basis: calc(33.33% - 14px);
justify-content: center;
flex-direction: column;
}
.grid > div > div {
display: flex;
justify-content: center;
flex-direction: row;
}
.box { margin: 10px 0 10px 10px}
.box1 { background-color: red; }
.box2 { background-color: orange; }
.box3 { background-color: blue; }
.box4 { background-color: grey; }
.box5 { background-color: purple; }
HTML
<div class="grid">
<div class="box box1">
<div>
one
</div>
<div>
example content
</div>
</div>
<div class="box box2">
<div>
two
</div>
<div>
example content
</div>
</div>
<div></div>
<div class="box box3">
<div>
three
</div>
</div>
<div class="box box4">
<div>
four
</div>
</div>
<div class="box box5">
<div>
five
</div>
</div>