When I add a greyscale to my container, it makes everything grey. I am trying to just get my background to be greyscale and my span or really anything inside of it to not be affected.
The goal is to make my background image grey scale only. And to be able to not have my content be affected.
Does anyone know how to accomplish this?
HTML
<div class="greyscale">
<span>a</span>
</div>
CSS
div {
width:20%;
height:20%;
background-image: url('/image/theimage.png');
color:red;
}
.greyscale {
-webkit-filter: grayscale(100%);
filter: greyscale(100%);
}
span {
-webkit-filter: grayscale(0);
filter: greyscale(0);
}