Last active
October 25, 2016 21:38
-
-
Save abhishekdagarit/05fb08fd2e00c4816575f68c3fd2bb89 to your computer and use it in GitHub Desktop.
Flushing footer to bottom of the page, twitter bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html, body { | |
height: 100%; | |
} | |
#wrap { | |
min-height: 100%; | |
} | |
#main { | |
overflow:auto; | |
padding-bottom:150px; /* this needs to be bigger than footer height*/ | |
} | |
.footer { | |
position: relative; | |
margin-top: -150px; /* negative value of footer height */ | |
height: 150px; | |
clear:both; | |
padding-top:20px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="wrap"> | |
<div id="main" class="container clear-top"> | |
<p>Your content here</p> | |
</div> | |
</div> | |
<footer class="footer"></footer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment