Dear Kriesi,
What would be the best way to have a boxed layout that always extends to the full height of the browser. I’d prefer not to have the background colour show under the white content box on pages with shorter content (example below)
Is there a way to do this by adding a footer that always sticks to the browser bottom?
Thanks, Richard
Hey Richard!
You can enable footer socket and then add following code to Quick CSS
#socket { position: fixed; width: 100%; bottom: 0; }
Best regards,
Yigit
Thanks Yigit,
This doesn’t seem to be working correctly. Could you take another look.
Best w, Richard
Hi!
You can apply a minimum height to the main container:
.html_boxed #main {
min-height: 900px;
}
Use css media queries to adjust the height on different screen sizes.
Best regards,
Ismael
Thanks Ismael,
Unfortunately this is really not working. With this min height on the box, the footer now moves up and down, leaving white space underneath.
Could you take another look (link below)
Best wishes,
Richard
Hey!
Did you remove the previous suggested code? Please remove it then test the page again.
Regards,
Ismael
Yes, I already removed the following code:
#socket { position: fixed; width: 100%; bottom: 0; }
The problem is that now the white box is always min height 900px, which is good, but the footer does not sit at the bottom, it moves up and down under content.
Thanks, Richard
Hey!
you can control position of your footer with this code:
footer#socket {
top: 50px;
}
adjust as needed.
Cheers!
Andy