JSFiddle - React, Tailwind, and code Playground
HTML
<div class="floating">
This should be in the middle
</div>
CSS
.floating {
height: 100px;
float: left;
border: 1px solid red;
vertical-align: middle;
}
<div class="floating">
This should be in the middle
</div>
.floating {
height: 100px;
float: left;
border: 1px solid red;
vertical-align: middle;
}