JSFiddle - React, Tailwind, and code Playground

by samih

HTML

<div class="divClass">
    <form id="frm" method="post" action="/NotDefinedYet/index.xhtml" class="frmClass">
        <input type="text" name="j_idt9:j_idt10:Username" placeholder="Username">
    </form>
</div>

CSS

.divClass{
    position: relative;
    background-color: grey;
    width: 350px;
    height: 450px;
}
.frmClass{
    width: 280px;
    height: 150px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    background-color: white;
}