1
Let’s say you set an image as the background of a div as follows:
#div {
background: #111111 url(../imagens/imagem1.jpg) top center;
background-size: cover;
How do I change the properties of this image for example:
filter: grayscale(100%);
opacity: 0.2;
Is it possible to make these changes only in the image? Because if you add those lines along with the other code part, the changes will be made throughout Div, and that’s not what I want.
I think when you use a div and use an image as background, your element is a div, so you have 2 paths, create a div only for the image and another as wrapper, or use the html img tag.
– MagicHat