JSFiddle - React, Tailwind, and code Playground

by Avinashullal

HTML

<div class="flex">
    <div>Hithis is a long test sentence this is a long test sentence this is a long test sentence this is a long test sentence </div>
    <div>Hellothis is a long test sentence this is a long test sentence this is a long test sentence this is a long test sentence </div>
    <div>Hello 2this is a long test sentence this is a long test sentence this is a long test sentence this is a long test sentence </div>
</div>

CSS

*
{
    box-sizing: border-box;
}
.flex
{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

 

.flex > div
{
   flex: 1 0 20%;
   text-align: center;
   padding: 10px;
}

.flex > div:first-child
{
    flex: 0 1 100%;
    flex-direction: column;
}