Instead of scrolling down the page to view a bunch of divs, I would like them to overlay in the same place-- one stacked on top the next -- when you scroll. So, you would sc
Use position fixed instead of absolute:
.container1 { position: fixed; z-index: 1; } .container2 { position: fixed; z-index: 2; }