Instead of scrolling through the page to view a bunch of divs, I would like them to overlap the same place - one folded on top of the next - when scrolling. This way you scroll down, but the page does not go down. Instead, the next div will overlay the first, etc. Etc. Not sure how to do this? Here is what I have:
UPDATE
.container { width:100%; height:100%; position:relative; } .container1 { display:block; position:fixed; margin-top:690px; width:100%; height:500px; z-index:1; background:#333; } .container2 { display:block; position:absolute; margin-top:1190px; width:100%; height:500px; z-index:2; background:#F00; } <div class="container"> <div class="container1"> info </div> <div class="container2"> info </div> </div>
This setting works, but the bottom div (container1) is not 500 pixels, but set to the screen size. I'm sure this is a simple code setup, but I'm at a dead end.
Thanks for any help!
source share