Creating a footer with a lower z-index and absolute position is quite simple! Just ensure that the CSS for the div includes position:fixed
. Adjust the height of the content div to ensure the footer is visible.
Best of luck!
If you need more information, feel free to ask!
[edit]:
Check out this fiddle example
In the example provided, there are two divs within a basic HTML page - one for content and another for the footer:
<div id="content">
</div>
<div id="footer">
<p>Lorem ipsum dolor sit amet...</p>
</div>
//I added some text in the footer so you can actually see the parallax effect
The CSS for the content div includes:
#content {
width:100%;
height:1500px;
margin-bottom:200px;
background-color:#123456;
}
Ensure that the margin-bottom
matches the footer height to display it correctly.
The CSS for the footer is:
#footer {
position:fixed;
bottom:0;
left:0;
width:100%;
height:200px;
z-index:-1;
background-color:#000;
}
Note the use of position:fixed
and z-index:-1
to achieve the desired effect without losing the parallax effect.
That's all you need to know!