This code works but the <input>
is not perfectly vertically aligned with its button:
.wrapper {
height: 25px;
}
.myinput {
box-sizing: border-box;
width: 150px;
height: 100%;
}
.mybutton {
display: inline-block;
box-sizing: border-box;
height: 100%;
padding: 2px 10px;
background-color: #57A3E7;
color: white;
}
<div class="wrapper">
<input class="myinput" placeholder="[email protected]" type="email">
<div class="mybutton">Go!</div>
</div>
How to perfectly align them (in height and vertical position), but without using flex
, etc.?