I am trying to place an input next to a button and even though i have removed all margin there is still a gap between the elements.
#searchButton {
height: 2em;
width: 2.4em;
color: #fff;
background-color: #71b066;
border: 0;
margin-left: 0px !important;
margin-right: 0px !important;
font-size: 1.2em;
cursor: pointer;
}
#searchBox {
height: 2em;
width: 15em;
margin-right: 0px !important;
font-size: 1.2em;
padding-left: 1em;
border: 1px #dbdada solid !important;
background-color: #e5e3e3;
margin-left: 0px !important;
}
<form id="formBox">
<input type="search" name="search" id="searchBox">
<button type="submit" id="searchButton">OK</button>
</form>
I have tested this on Google chrome and Firefox and within a jsFiddle. I get the same result everytime.