I have put this on JSFiddle for ease.
https://jsfiddle.net/d1Lgm0g1/1/
body {
background-color: #7f8183;
}
.search-button {
width: 26px;
height: 26px;
background-image: url(https://cdn1.iconfinder.com/data/icons/MetroStation-PNG/252/MB__search.png);
background-size: 26px, 26px;
display: inline-block;
padding-bottom: 2px;
opacity: 0.7;
text-indent: 0em;
}
<input type="image" name="input" id="ImageButton1" class="search-button" src="" value=" ">
As you can see there is a grey (border box?) around my image. I have tried so many different CSS values, i.e. border:none
, -webkit-appearance: none
, box-shadow: none
with no effect. It's not the padding as if padding is set it appears around the grey box.