I'm stuck at styling HTML image (<img>
). I can't find a way to add a white overlay over image.
I have been trying this - CSS background image on top of <img> (Doesn't work).
HTML
<img class="default-user" src="https://minotar.net/helm/Steve/16.png">
CSS
.default-user {
position: absolute;
outline: #e8e8e8 solid 1px;
-webkit-filter: grayscale(50%);
filter: grayscale(50%);
}
Is there any way to add overlay? Thank you for your help!