I'd like to know how to auto resize an image depending on the screen size of the device.
My image is too big and make my web page extend with it...
.gris {
height: 100%;
left: 20%;
opacity: 0;
position: absolute;
top: 0;
transition-duration: 0.2s;
width: 100%;
z-index: -10;
}
<div class="gris">
<img src="https://pngimage.net/wp-content/uploads/2018/06/image-noir-png.png">
</div>