How to make responsive image satanisim with css or js?

with fixed values of width and height got to do,but adaptive does not go...
July 5th 19 at 00:37
3 answers
July 5th 19 at 00:39
Solution
wrap image in a div type .img-wrap and ask him
:before {
 content: ";
 display: block;
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.5);
 z-index: 2;
}

and the
.img-wrap {
 position: relative;
 z-index: 1;
}
thank you,your solution helped - Zack_Runolfsson34 commented on July 5th 19 at 00:42
July 5th 19 at 00:41
Filter type
filter: grayscale(0.7);
filter: saturate(20%);
filter: brightness(2);

and their combinations
do not get to decide?

Just a code, example, what and how to darken, too, you have to wonder
filter: brightness(0.8);
So it is possible, but will not entirely cross-browser (there is no all IE and older versions of Android). - Zack_Runolfsson34 commented on July 5th 19 at 00:44
July 5th 19 at 00:43
You can still box-shadow to use.

Find more questions by tags HTMLJavaScriptLayoutWeb Development