I am trying to add a translucent color layer to the top of the image for a background div. I tried the following:
background: url('myImage.jpg'), rgba(0,0,0,0.5);
Besides
background-image:url('myImage.jpg'); background-color:rgba(0,0,0,0.5);
But in both cases, only the image appears. I know that I can wrap this div in another div with color, but is there a way to do it all in one div?
Flynn source share