I am creating a search bar in my HTML and I am trying to put a magnifying glass button at its end. It looks fine on desktop, but on mobile the button is taller than the search bar. Much thanks if you know how to get it to be the same height on every viewport.
.autocomplete {
position: absolute;
top: 50%;
left: 15%;
}
button[type=reset] {
background-color: #34587F;
color: #fff;
position: absolute;
border: 0;
font-size: 2vw;
border-radius: 10%;
width: 20%;
height: 100%;
}
<div class="autocomplete" style="width:40%; font-family: 'Fjalla One'">
<input id="searchField" type="text" name="search" placeholder="SEARCH" />
<button type="reset" id="submit" onclick="goTo();"><i class="bi bi-search"></i>
</button>
</div>