I want to have two elements appear side by side in my website sidebar. I have
<form class="searchForm">
<input type="text" name="search" class="form-control" >
<input type="submit" value="Search" id="search" name="search" >
</form>
And styled it with the following
input {
margin: 0;
}
.searchForm {
display: flex;
}
.form-control {
width: 80%;
}
My trouble is although this displays properly on Chrome, on Firefox, the button is getting cut off. I have prepared a demo. Does anyone know how I can make the button display on Firefox then same way it does on Chrome? I tried changing my CSS "display:flex;" to be "display:block" but then the elements appear on different horizontal planes.