I have two div with a height of 100%. And when you scroll, I want that the second div over the other scrolls, without scrolling the first up.
Like on this site: http://w
There is a much simpler way. I found it on W3Schools. The important part is to add background-attachment: fixed. The full CSS looks like this:
.banner {
background-image: url("foo.jpg");
min-height: 500px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}