JSFiddle - React, Tailwind, and code Playground

HTML

<div id="outer">
    <div id="inner">
    </div>
</div>

CSS

#outer {
    position: relative;
    width: 300px;
    height: 100px;
    background: red;
}
#inner {
    position: absolute;
    width: 200px;
    height: 50px;
    left: 50%;
    bottom: 0;
    margin: 0 0 0 -100px;
    background: blue;
}