To reduce the loadtime of my webpage I put all icons into one big imagefile.
What I need now is the fourth icon (attachment-icon) as button icon.
This is what I have:
button.attach {
background: lightgray url(https://i.stack.imgur.com/ZT5KK.png);
background-position-x: -116px;
padding-left:30px;
height:45px;
}
<button class="attach"> Attach file</button>
Unfortunately the fifth icon (trash) and the sixth icon (bug) sneak behind the text. How to cut the image down to this icon only?