Tagged: sticky footer
Hi,
We’re using a sticky footer and socket on a site using the following code;
#footer {
position: fixed;
bottom: 20px;
width: 100%;
z-index: 10000!important;
}
#socket {
position: fixed;
bottom: 0px;
width: 100%;
z-index: 10000!important;
}
The only issue is that the bottom of the content of pages is getting cut off. How can we add 100px of extra space at the bottom of all pages?
Hey dburton77,
You need to give the last containers on all pages the margin or the padding at the bottom to account for the footer height.
Best regards,
Victoria
Victoria,
Thanks for getting back to me so quickly. I was hoping there was a way to apply this adjustment globally so that each page would not have to be adjusted. Is there code for that?
Doug
Hi Doug,
You could try something like this to apply a margin to the bottom of the body tag:
body {
margin-bottom: 120px;
}
Best regards,
Rikard
Works great. Brilliant!
Many thanks,
Doug