Use a specific selector for id
and add the id
in your image.
<img id="imagem_especifica">
<style>
#imagem_especifica {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
</style>
The id
is used to reference only one object. If it is necessary to capture more than one element, but not all, I advise you to use class
.
Behold:
<style>
.imagem_especifica {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
</style>
When you use the attribute id
in an element, to reference it in Css, just use the #
followed by the name of id
. To class
is the same thing, but you use the .
before the name.
Yes, you blur the image according to the intensity given by the value within the parentheses.
– who who who who
Oh yes, I was Grayscale.
– Renan Gomes