I want to put a background image in this div, I already tried it with height: 100% but the height of the div is limited to the height of the viewport, when scrolling down, the div ends, and also the background image .
I want to put a background image in this div, I already tried it with height: 100% but the height of the div is limited to the height of the viewport, when scrolling down, the div ends, and also the background image .
Simply add the position: fixed
property to your div
.