JSFiddle - React, Tailwind, and code Playground
HTML
<div class="content-wrapper">
<div class="content">
<div class="lot-wrapper">
<div class="lot">
Короткий текст
</div>
</div>
<div class="lot-wrapper">
<div class="lot">
Ещё короткий текст
</div>
</div>
<div class="lot-wrapper">
<div class="lot">
Текст по длиннее<br/>
и <br/>
c <br/>
переносами <br/>
</div>
</div>
<div class="lot-wrapper">
<div class="lot">
Еще короткий текст
</div>
</div>
<div class="lot-wrapper">
<div class="lot">
Граждане, не умирающие до 60 лет, участвуют в заговоре по подрыву устойчивости нашей пенсионной системы.
</div>
</div>
<div class="lot-wrapper">
<div class="lot">
опять короткий
</div>
</div>
</div>
</div>
CSS
.content-wrapper {
width: 100%;
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: stretch;
justify-content: center;
}
.content {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: stretch;
justify-content: center;
}
.lot-wrapper {
width: 40%;
vertical-align: top;
display: flex;
margin: 15px;
padding: 15px;
}
.lot {
border: 1px solid red;
position: relative;
width: 100%;
display: table-cell;
}