opacity of whole page changing instead of background image
hey folks I have a div with the following css
but when I add
opacity: 0.5;
in the above code opacity of whole page changes instead of the background-image is there anyway by which I can change the opacity of only background-image1 Reply
this class is set on the body? Then the whole body will get the opacity
if you only want to effect the background, you can put it in a before/after pseudo element of the body so it will only affect that
for example
other option is to not use opacity, but using a stacked background with a translucent layer on top, so the image "seems" to have an transparancy
like