"sticky footer"
Bootstrap 3.3.0 Snippet by devlopereswar

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> </div> </div> <footer class="footer"> Stciky Footer </footer>
.footer{width:100%; float:left; background:#333; height:50px;}
$(document).ready(function() { var docHeight = $(window).height(); var footerHeight = $('.footer').height(); var footerTop = $('.footer').position().top + footerHeight; if (footerTop < docHeight) { $('.footer').css('margin-top', 10+ (docHeight - footerTop) + 'px'); } });

Related: See More


Questions / Comments: