Trying to copy some front end mentor challenges I am right now styling input field. I want to do 3 things right now.
- I want to display the button inside the input field (even though I made it inside it is not perfect fit)
- display the error icon inside the input field.
- display the message "please provide a valid Email" below the textbox.
Right now it displays like this
.left button {
background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
border: none;
border-radius: 50px;
width: 100px;
margin-left: -104px;
margin-top: -30px;
height: 48px;
}
.left input {
background-color: transparent;
border: 1px solid hsl(0, 36%, 70%);
border-radius: 15px;
padding: 13px;
width: 60%;
}
.left .error {}
<form action="#">
<input type="text" placeholder="Email Address">
<img src="https://stackoverflow.com/images/icon-error.svg" alt="" class="error">
<button type="submit"><img src="https://stackoverflow.com/images/icon-arrow.svg " ></button>
<small>please provide a valid Email</small>
</form>
