JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<div>
<p>
hello
</p>
<p>
hello
</p>
<p>
hello
</p>
<p>
hello
</p>
<p>
hello
</p>
</div>
<div>
box 1
</div>
<div>
box 1
</div>
<div>
box 1
</div>
<div>
box 1
</div>
</div>
CSS
.container {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
}
.container > div {
background: yellow;
flex-basis: calc(50% - 40px);
margin: 20px;
}