Is there a way to place a button inside a text input field? I want to achieve this design:
https://i.sstatic.net/q2M9v.png
This is my current code:
input {
background: #8196aa;
border: 0;
border-radius: 10px;
color: white;
padding: 20px;
&:focus {
outline: none;
}
&::placeholder {
color: white;
}
}
button {
background: #16bdae;
border: 0;
border-radius: 7px;
color: white;
padding: 15px;
}
<div class="pt-site-footer__submit">
<input type="email" placeholder="Your e-mail address">
<button>LOGIN</button>
</div>
If anyone knows how to achieve this, I would greatly appreciate the help. (Previous answers on Stack Overflow didn't solve my issue)