You need to wrap your .container-fluid
div in order for your sticky footer to work, you're also missing some properties on your .wrapper
class. Try this:
Remove the padding-top:70px
from your body
tag and include it in your .container-fluid
instead, like so:
.wrapper > .container-fluid {
padding-top: 70px;
}
We have to do this because pushing the body
down to accommodate the navbar ends up pushing the footer a bit further (70px further) past the viewport so we get a scrollbar. We get better results pushing the .container-fluid
div instead.
Next we have to remove the .wrapper
class outside your .container-fluid
div and wrap your #main
div with it, like so:
<div class="wrapper">
<div id="main" class="container-fluid">
<div class="row-fluid">...</div>
<div class="push"></div>
</div>
</div>
Your footer of course has to be out of the .wrapper
div so remove it from the `.wrapper div and place it outside, like so:
<div class="wrapper">
....
</div>
<footer class="container-fluid">
....
</footer><!--END .row-fluid-->
After thats all done, properly push your footer closer to your .wrapper
class by using a negative margin, like so:
.wrapper {
min-height: 100%;
height: auto !important; /* ie7 fix */
height: 100%;
margin: 0 auto -43px;
}
And that should work, though you're probably going to have to modify a few other things to make it work when the screen is resized, like resetting the height on the .wrapper
class, like so:
@media (max-width:480px) {
.wrapper {
height:auto;
}
}