I try to align inputs and button vertically and horizontally on the page.
Usually css, provided below works nicely for block elements, but not for inputs.
Please see jsfiddle below:
.outer {
position: relative;
width: 100%;
height: 100%;
}
.inner {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
.input, .button {
width: 200px;
display: block;
}
<div class="outer">
<div class="inner">
<input type="text" class="input">
<input type="text" class="input">
<button type="text" class="button">Button</button>
</div>
</div>