JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container">
<!-- Equal height columns -->
<div class="one">1 Equal height columnsdiv</div>
<div class="two">2 Equal height columnsdiv Equal height columnsdiv</div>
<div class="three">3 Equal height columnsdiv Equal height columnsdiv</div>
<div class="four">4 Equal height columnsdiv</div>
</div>
CSS
.container {
/* Initialize the flex model */
display: flex;
/* These are the default values but you can set them anyway */
flex-direction: row; /* Items inside the container will be positioned horizontally */
align-items: stretch; /* Items inside the container will take up it's entire height */
}
.container div{
max-width: 100px;
background: #eaeaea;
margin: 10px;
padding: 10px;
}
.one{order: 4;}
.two{order: 2;}
.three{order: 1;}
.four{order: 3;}