JSFiddle - React, Tailwind, and code Playground

HTML

<div id="module1" class="module">
    <div id="row1" class="row">
        <div id="box1" class="box"></div>
        <div id="box2" class="box"></div>
        <div id="box3" class="box"></div>
        <div id="box4" class="box"></div>
    </div>
    <div id="row2" class="row">
        <div id="box5" class="box"></div>
        <div id="box6" class="box"></div>
        <div id="box7" class="box"></div>
    </div>
    <div id="row3" class="row">
        <div id="box8" class="box"></div>
        <div id="box9" class="box"></div>
    </div>
    <div id="row4" class="row">
        <div id="box10" class="box">
            <p> Lorem ipsum </p>
        </div>
    </div>
</div>

CSS

/* the whole thing */
.module {
    
}
/* the parent */
.row {
    display: flex;
    justify-content: space-between;
}
.row::before, .row::after
{
    content:'';display:block;
    width:0;height:0;
    overflow:hidden;
}
/* the children */
.box {
        
}










/* --------------------------------------------------------
styles below are just to make things visible

*/

* {
    box-sizing: border-box;
}
.module {
    display: inline-block;
    font-size: 0; /* remove white gap between divs */
    border: 1px solid rgba(0,0,0,0.5);
}
p {
    font-size: 14px; /* turn the size back */
}
p:after, p:before {
    content: '-----';
}
.row {
    /*display: block;*/
    background-color: #F0F0F0;
}
.box {
    height: 40px;
    border: 1px dotted rgba(0,0,0,0.5);
    background-color: rgba(250,200,200,0.5);
}
#box1 { width:  50px; }
#box2 { width: 120px; }
#box3 { width:  80px; }
#box4 { width:  50px; }
#box5 { width: 200px; }
#box6 { width:  50px; }
#box7 { width: 120px; }
#box8 { width:  75px; }
#box9 { width: 200px; }