I'm having trouble in changing the image color inside of a button.
Here's the image.
I want the black download button icon change to green icon if possible in CSS? or any other way to make it like that? Instead of re-creating it again
And for the code:
<button><em class="leftImage"></em>Button<em class='rightImage'></em></button>
button{
margin: 0px;
padding: 0px;
font-family:Lucida Sans MS, Tahoma;
font-size: 12px;
color: #000;
white-space:nowrap;
width:auto;
overflow:visible;
height:28px;
}
button em{
vertical-align:middle;
margin:0 2px;
display:inline-block;
width:16px;
height:16px;
background-image: url(icon_delete.png);
}
button em.leftImage{
background-position: -96px -112px;
}
button em.rightImage{
background-position: -64px -16px;
}
But the output is not changing the color. its still black. https://jsfiddle.net/35kfu6z7/