Just like with other pages, the main div always takes up the entire screen visible to the user. As they scroll down, another div becomes visible: example1 , example2
Regardless of the screen size, the main div will always fill the space visible to the user.
To test this, I used the code below:
<div style="background:yellow; position:absolute; top:0; bottom:0; left:0; right:0; overflow:hidden; z-index:-1; float:left;">
This is my Section!
</div>
Using this code, a large yellow background with text fills the entire browser area. If I wanted to add another div beneath this one, how could I achieve that? Is it possible with CSS alone or would I need to use JavaScript?