adding overlay to background image css code example
Example 1: background overlay css
html {
min-height:100%;
background:linear-gradient(0deg, rgba(255, 0, 150, 0.3), rgba(255, 0, 150, 0.3)), url(http://lorempixel.com/800/600/nature/2);
background-size:cover;
}
Example 2: how to add a background overlay in css
.header {
background: rgba(0, 0, 0, 0.5); /* Black color with 50% alpha/opacity */
}
Example 3: make background overlay css
<div id="element-with-background-image">
<div id="color-overlay"></div>
...
</div>