I started to use bootstrap 4
my css
html{
height:100%;
background-color:#fff;
font-size:12px;
}
body.login-body{
height:100%;
background-color:#fff;
padding-top:20px;
}
In my login html i created this code
<body class="login-body">
<div class="container h100">
<div class="row align-items-center h-100">
<div class="col-d-4 my-auto mx-auto">
<div class="text-center">
<img src="/img/perma-xsm.png" alt="">
</div>
<div class="login-box">
<div class="login-title">LCM</div>
<form class="form-signin" id="loginForm" action="/login" method="post">
<input type="text" name="username" id="username" class="form-control" placeholder="Email" required="" autofocus="">
<input type="password" name="password" id="password" class="form-control" placeholder="Password" required="">
<button class="btn btn-lg btn-primary btn-block" type="submit">Login</button>
</form>
</div>
</div>
</div>
</div>
</body>
I tried to align verticaly and horizontaly without success my login
so my try was to use align-items-center on flexbox parent