I am using Wordpress and I can't get my footer to stay at the bottom of the webpage. I have a page.php which means that I use the same interface for all of my pages except the page content which I edit in Wordpress. On some pages it works fine but on the pages where the content is less (less text vertically if that makes sense) it is in the middle of the page and creates a white space at the bottom. This is the CSS I'm using for the footer atm.
.footer-nav {
display: block;
width: 100%;
height: 200px;
background-image: url(/pics/bannerbottom.jpg);
background-size: 100% 120%;
padding: 20px;
position: relative;
clear: both;
bottom: 0;
margin-top: 100px;
float: left;
}
.foot-container {
bottom: 0;
}
and the HTML is just a simple div
.
<div class="foot-container">
<div class="footer-nav"></div>
</div>