3
The problem I’m facing is to increase the upper margin between that title "Log in" of div main, I thought with a margin top I could do that, maybe I’m using it wrong, I tried, I tried but I couldn’t!
body {
background-color: hsla(0,0%,78%,.75);
font-family: tahoma, Arial;
margin: 0px;
padding: 0px;
}
.login {
background-color: #FFF;
color: #5e5e5e;
width: 320px;
height: 450px;
margin: auto;
border-radius: 5px;
}
#title-login {
font-size: 1.5em;
color: #5e5e5e;
margin: auto;
background-color: #FFF;
width: 300px;
margin-top: 50px;
margin-bottom: 10px;
padding-left: 20px;
border-radius: 5px;
}
h1 {
margin: auto;
width: 290px;
text-align: center;
margin-bottom: 10px;
}
p {
margin: auto;
margin-top: 25px;
width: 290px;
text-align: center;
}
.fieldFormValidation {
margin: auto;
margin-top: 30px;
width: 290px;
height: 232px;
}
.validation {
margin: auto;
padding-left: 10px;
border: 1px solid #cacac9;
width: 278px;
height: 45px;
margin-bottom: 15px;
border-radius: 5px;
font-size: .875rem;
}
.btn-submit {
width: 290px;
color: #FFF;
background-color: #54cf8b;
border: 1px solid #54cf8b;
text-transform: uppercase;
font-weight: bold;
}
.btn-submit:hover {
box-shadow: 0px 5px 10px #333;
transition-duration: 0.3s;
transition-timing-function: linear;
transition-delay: 0.1s;
}
.savePwd-and-recoveryPwd {
margin-top: 14px;
width: 290px;
height: 30px;
background-color: #999;
display: flex;
}
.div-rememberLogin {
width: 145px;
display: block;
float: left;
font-size: .875rem;
line-height: 30px;
}
.div-recoveryPwd {
width: 145px;
display: block;
float: right;
font-size: .875rem;
line-height: 30px;
text-align: right;
}
hr {
width: 290px;
margin-top: 30px;
margin-bottom: 10px;
}
h6 {
width: 290px;
margin: auto;
text-align: right;
font-family: helvetica;
font-size: 0.75em;
}
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title>Login</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="_css/login.css"/>
</head>
<body>
<h1 id="title-login">Nome vai aqui</h1>
<div class="login">
<h1>Fazer Login</h1>
<p>Não possui uma conta? <a href="#">Registre-se</a></p>
<form id="registerForm" name="registerForm" class="fieldFormValidation" action="page.php" method="post">
<input type="email" name="email" required autofocus class="validation" placeholder="Digite seu e-mail" autocomplete="on"/>
<input type="password" name="senha" placeholder="Informe sua senha" required class="validation" minlength="8" maxlength="16"/> <br>
<input type="submit" class="validation btn-submit" name="btn-enviar" value="FAZER LOGIN">
<div class="savePwd-and-recoveryPwd">
<div class="div-rememberLogin">
<input id="remember" type="checkbox" class="tw-checkbox" name="remember">
<label for="remember" class="tw-checkbox-label small">Lembrar-me</label>
</div>
<div class="div-recoveryPwd">
<a href="recuperar-senha.php">Esqueci a senha</a>
</div>
</div>
</form>
<hr>
<h6>feito por <a href="#">fulano de tal...</a></h6>
</div>
</body>
</html>