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:

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 {


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
sk01
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi

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

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.