I'm trying to edit the form text padding without changing the form size (to match the placeholder). Every time I change the padding it adds the form's length.
.form-wrapper {
display:flex;
justify-content: center;
flex-direction: column;
margin: 1em 6em;
}
form {
width:100%;
margin: 1em 0;
}
.email-input input{
border-top-left-radius: 10px;
border-top-right-radius: 10px;
border-bottom: none;
}
.password-input input{
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
input {
width:100%;
height: 50px;
border:solid 1px #ccc;
font-size:18px;
}
input::placeholder {
color: #ccc;
font-size:18px;
padding-left:25px;
}
<form>
<div className="input-field email-input">
<input id="email" type="text" className="validate" placeholder="Enter Your Email Adress"/>
</div>
<div className="input-field password-input">
<input id="password" type="text" className="validate" placeholder="Enter Your Password"/>
</div>
</form>
Adding something as :
input {
padding-left: 25px;
}
Increases the form length which is undesirable. Is this something I have to end up hacking through to make work?