I have one element below the other, and I use the position relative to dragging the bottom element a little bit so that it overlays the top element.
The paperOverlay element is the last element on the page, vertically, and I want it to extend to the bottom of the browser window. However, the relative pushing of the position of the element leaves an equal number of spaces below. Is there any way to avoid this?
HTML looks like this:
div class="container">
<div class="homePage">
</div>
<div class="paperOverlay" style="position: relative; top: -70px;">
</div>
</div>
And CSS looks like this:
div.container
{
width: 960px;
margin: 0 auto;
}
div.homePage
{
width: 800px;
height: 500px;
}
div.paperOverlay
{
width: 960px;
min-height: 400px;
background: url('Images/Overlay.png') no-repeat top center;
}
. , . margin-top: -70px, , , , , .