JSFiddle - React, Tailwind, and code Playground
HTML
<flex-container>
<flex-item>
<div></div>
<div></div>
</flex-item>
<flex-item class="big"></flex-item>
<flex-item>
<div></div>
<div></div>
</flex-item>
</flex-container>
<br><hr><br>
<flex-container>
<flex-item class="big"></flex-item>
<flex-item>
<div></div>
<div></div>
</flex-item>
<flex-item>
<div></div>
<div></div>
</flex-item>
</flex-container>
CSS
flex-container {
display: flex;
}
flex-item {
flex-grow: 1;
height: 200px;
margin: 0 5px;
display: flex;
flex-direction: column;
}
.big {
flex: 0 0 40%;
background-color: black;
}
div {
flex-grow: 1;
background-color: black;
}
div + div { margin-top: 10px; }