5
I have a form you received display: flex
, and inside it is 3 inputs
: a name, a password and a button, plus a h1
written 'login'.
When I pass the mouse over the elements, the height
and the width
increase, only that the top element of the element that increases does not get stopped, it goes up.
I was wondering if you have any commands I can use to allow him to overlap the margins and not go up.
Code:
*{color: white}
body{
background: rgb(1, 1, 24);
display: flex;
flex-flow: column wrap;
justify-content: center;
align-items: center;
min-height: 100vh;
color: white;
}
.formulario{
display: flex;
background: black;
border-radius: 200px;
padding: 50px;
height: 500px;
width: 300px;
flex-flow: column wrap;
justify-content: center;
align-items: center;
box-shadow: 2px 0px 0px 1px rgb(29, 172, 0)
}
.login{
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-weight: bolder;
font-size: 60px;
}
.nome{
margin-bottom: 30px;
background: rgb(10, 10, 10);
border:solid 1px white;
border-radius: 15px;
}
.nome:hover, .nome:focus{
border: solid 3px rgb(29, 172, 0);
padding: 7px 50px;
transition: ease-in-out 70ms;
}
.nome::placeholder{
font-family: cursive;
text-align: center;
}
.senha{
margin-bottom: 30px;
background: rgb(10, 10, 10);
border:solid 1px white;
border-radius: 15px;
}
.senha:hover, .senha:focus{
border: solid 3px rgb(29, 172, 0);
padding: 7px 50px;
transition: ease-in-out 70ms;
}
.senha::placeholder{
font-family: cursive;
text-align: center;
}
.enviar{
background:rgb(29, 172, 0);
border-radius: 15px;
border: solid 1px rgb(29, 172, 0);
border-radius: 15px;
color: white;
padding: 6px 20px;
border-radius: 200px;
color: black;
font-family: cursive;
font-weight: bold
}
.enviar:hover{
padding: 20px 36px;
transition: ease-in-out 70ms;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Formulário estilizado 01</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<script src="scripts.js"></script>
</head>
<body>
<form method="POST" class="formulario">
<h1 class="login">LOGIN</h1>
<input type="text" class="nome" placeholder="nome">
<input type="password" class="senha" placeholder="senha">
<input type="submit" value="enviar" class="enviar">
</form>
<script>
</script>
</body>
</html>
Friend only your report doesn’t help you much to answer, just in the kick! Please edit your question and include the CSS and HTML of this form etc
– hugocsl
obg, amigo. I’ve already edited and put my css code, can you help me?
– lucas F