In my project, I have a div and I set the background of it to an image. I now want to add a dark overlay to this image.
I have attempted to implement other solutions on the web, however I was unsuccessful when trying.
Here is my existing code:
<div class="bgDiv">
</div>
.bgDiv {
width: 100%;
height: 88vh;
position: relative;
background: url("https://images.porffrrf.com/ededd/dedede444334ffr0") no-repeat center center/cover;
}
Does anybody know how to implement this functionality? Thank you.