How to impose a transparent background when hover? Here is the code where there is just a background overlay:
https://jsfiddle.net/38yg95t3/
but when I want to do the same but with hover (ie, darken the picture) and add the code
.img-overlay:hover{ z-index:1; width: 100%; height: 100%; background: rgba(76, 68, 68, 0.3); } ничего не срабатывает,как это исправить?