JSFiddle - React, Tailwind, and code Playground

by Bipin Kumar Pal

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{
    width: 350px;
    height: 450px;
    text-align:center;
}
.frmClass{
    position: relative;        
    margin:0 auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    height: 150px;
    vertical-align: middle;
    top: 50%;
}