JSFiddle - React, Tailwind, and code Playground
HTML
<div class="inner">
<div class="innerwrap red">
<p>This is some text</p>
</div>
<div class="innerwrap blue">
<p>This is some text</p>
</div>
</div>
CSS
.inner {
width: 100%;
display: table;
}
.innerwrap {
width: 50%;
height: 300px;
display: table-cell;
vertical-align: middle;
text-align: center;
}
.red {
background-color: red;
}
.blue {
background-color: blue;
}