How can I add opacity 0.8 to this code background: #1f84b6 url(https://www.capebretoncares.com/img/background.jpg) no-repeat center center; I can not add it to the div css that image is in as there are other images in it and i do not want it to affect them or the content in that div. Thanks
Grab gimp, edit the image and reupload. If you can mess with the HTML there's this: https://scotch.io/tutorials/how-to-change-a-css-background-images-opacity
add the image as generated content, then set its siblings in the parent element to position:relative so they can depth-sort over it. let's say div#test is the parent: #test { position:relative; } #test > * { position:relative; } /* or whatever other child elements are there */ #test:before { content:""; position:absolute; top:0; left:0; width:100%; height:100%; background(images/yourBackgroundimage.jpg); opacity 0.8; } Code (markup):