I want to add an opacity layer over my fullscreen background image with these settings:
rgba(77,85,91,0.8)
I am using the following CSS to set my background cover:
background: image_url("landing_page/background.png") no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
The page image loads fine - but I cannot work out the correct CSS3 syntax to apply this overlay opacity to the fullscreen html background image.
I tried adding a new CSS class called 'overlay' to the HTML element which had the following CSS:
background: rgba(77,85,91,0.8);
overflow: hidden;
height: 100%;
z-index: 2;
with this html:
<html class="overlay" lang="en">
But the result of this is just the grey colour without being able to see my image underneath.... Please help