I have div block which contains form as the following:
<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>
corresponding css
-stylesheet
.divClass{
width: 350px;
height: 450px;
}
.frmClass{
position: relative;
margin:auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 280px;
height: 150px;
}
Eventually i have only horizontl centering form relative to div
block. But I need to centering both vertical and horizontal. How it can be implemented?