JSFiddle - React, Tailwind, and code Playground
by chic chic
HTML
<div id="wrapper">
<div id="content">
</div>
</div>
CSS
div#wrapper {
position: relative;
width: 500px;
height: 500px;
background-color: #c00;
}
div#content {
position: absolute;
top: 50%;
left: 0;
width: 400px;
height: 300px;
margin-top: -150px;
background-color: pink;
}