JSFiddle - React, Tailwind, and code Playground
HTML
<div class="wrap">
<div class="first"></div>
</div>
CSS
.first, .second {
display: inline-block;
text-align: center;
background-color: red;
max-width: 300px;
width: 100%;
min-height: 200px;
margin-top: 50px;
}
.wrap{
text-align: center;
}