JSFiddle - React, Tailwind, and code Playground
by Qwerty_Wasd
HTML
<div class="flex-box">
<div class="inner"></div>
<div class="inner"></div>
<div class="inner"></div>
</div>
CSS
.flex-box {
display: flex;
flex-wrap: wrap;
max-width: 800px;
background-color: #0ff;
justify-content: center;
}
.inner {
flex-grow: 1;
height: 200px;
min-width: 200px;
margin: 10px;
background-color: #ff0;
}
.inner:last-child {
max-width: 400px;
}