You can use flex to align to the center of the page - simply wrap the form in a div with display:flex and height:100vh
- and then apply margin:auto
to your form.
.form-wrapper {
display: flex;
height: 100vh;
}
form {
margin: auto
}
<div class="form-wrapper">
<form>
<input class="signininp" type="input" name="email"/>
<br>
<input class="signininp" type="input" name="pass"/>
<br>
<input class="signininp" type="submit" name="submit" value="Giriş Yap">
</form>
</div>
You could also use display: grid, height: 100vh and place-items:center
on teh parent element - which effectively combines align-items: center
and justify-content: center
on the parent div.
.form-wrapper {
display: grid;
height: 100vh;
place-items: center;
}
<div class="form-wrapper">
<form>
<input class="signininp" type="input" name="email"/>
<br>
<input class="signininp" type="input" name="pass"/>
<br>
<input class="signininp" type="submit" name="submit" value="Giriş Yap">
</form>
</div>