JSFiddle - React, Tailwind, and code Playground
by Sergey Goryachev
HTML
<div class="flex">
<div class="square square--left"></div>
<div class="square square--center"></div>
<div class="square square--right"></div>
</div>
<p style="text-align: center;">
Center
</p>
CSS
.square {
width: 100px;
height: 100px;
border: 1px solid black;
}
.square--left {
width: 200px;
}
.square--center {
display: block;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.square--right {
width: 150px;
}
.flex {
display: flex;
justify-content: space-between;
}