Min-Height 100% and Footer sticking to bottom
Permalink Browser Info Environment
Hi,
when the content doesn't fill the complete page, the remaining space to the bottom of the browser remains white.
But since I'm still a nice guy, here is the fix.
MAIN.CSS Adjustments:
and now we need to give the #footer parent the ID "footerpos".
In the package in "elements/footer.php" change line 5 to:
That's it.
when the content doesn't fill the complete page, the remaining space to the bottom of the browser remains white.
But since I'm still a nice guy, here is the fix.
MAIN.CSS Adjustments:
html,body { margin:0; padding:0; height:100%; /* needed for #wrapper min-height */ } #wrapper { height:auto !important; /* real browsers */ height:100%; /* IE6: treaded as min-height*/ position:relative; min-height:100%; /* real browsers */ } #content_bb { margin-bottom: 6em; /* some space for the footer */ } #footerpos {
Viewing 15 lines of 18 lines. View entire code block.
and now we need to give the #footer parent the ID "footerpos".
In the package in "elements/footer.php" change line 5 to:
<div id="footerpos" class="sixteen columns alpha omega">
That's it.
Type: | Discussion |
---|---|
Status: | New |
Indeed a nice guy! I'll check that out and get back to you. Due to some browser resolutions the white space isn't noticeable if the page fills the entire height however for shorter content or larger screens I think this is a solution.
Thanks,
JZ