I attempted to add a sticky background to a div, which was successful. However, I am encountering an issue where the background does not stretch enough during scrolling. Below is the CSS code I used to apply the background, along with screenshots displaying the problem:
https://i.stack.imgur.com/OkiUf.jpg
After scrolling:
https://i.stack.imgur.com/RAx6f.jpg
.site-main {
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
background: url("http://areca3000.nl/glissenaar/wp-content/uploads/2017/05/bg-content.jpg")
no-repeat center center fixed ;
/* background-repeat: no-repeat;
background-size: 100%;
padding: 0 0 0 0 !important;
/*max-width: 1220px !important; 8? */
}
You can view the page at for further inspection.