Responsive Bootstrap Sticky Footer Height
16,112
Solution 1
height: auto
seems to solve the problem. You can include it with a media query for small viewports:
@media only screen and (max-device-width: 480px) {
#footer {
height: auto;
}
}
Solution 2
Your demo doesn't work anymore but the best Bootstrap sticky footer I've found is: https://gist.github.com/aalaap/3066704
Author by
AlGallaf
Updated on June 08, 2022Comments
-
AlGallaf almost 2 years
When the window is resized, the height of the footer expands but not the background color. Help!
http://twitter.github.io/bootstrap/examples/sticky-footer.html
-
clarif about 10 yearsThe example is still online but the URL changed: getbootstrap.com/examples/sticky-footer-navbar
-
wnajar over 9 yearsThis doesn't seem to work anymore with the latest version of Bootstrap?
-
albertedevigo over 9 yearsI cannot reproduce the original issue with the latest version of Bootstrap, could you please report what OS and browser are you using?
-
wnajar over 9 yearsWindows 8, Chrome 37.0.2062.120 m
-
wnajar over 9 yearsProbably because the viewport max width is emulated.
-
Jonathan over 8 years@clarif As mentioned below - the bootstrap example uses a fixed height and is not responsive.
-
cfx over 8 years@ShyamalParikh Yes, it does. You're welcome to post a link to a fiddle with an example where you can't get it to work and I'm sure someone will be able to help you get it working.