The problem happens because when you zoom, your values will not be integer anymore. This means that rounding will take place and the outer container (.search
) will be 1px
larger than you would expect.
You can remove the float:right
on the .search-icon
and it will work ok.
You can see it here:
.search-icon{
display: inline-block;
background-color: #ACB6BE;
height: 30px;
width: 31px;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
cursor: pointer;
border: 1px solid #acb6be;
font-size:12px;
vertical-align: top;
}
Still, as mentioned, you can remove the !important
if you just add more specificity to your selectors.