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

Share:
16,112
AlGallaf
Author by

AlGallaf

Updated on June 08, 2022

Comments

  • AlGallaf
    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 Sticky Footer Bootstrap

  • clarif
    clarif about 10 years
    The example is still online but the URL changed: getbootstrap.com/examples/sticky-footer-navbar
  • wnajar
    wnajar over 9 years
    This doesn't seem to work anymore with the latest version of Bootstrap?
  • albertedevigo
    albertedevigo over 9 years
    I cannot reproduce the original issue with the latest version of Bootstrap, could you please report what OS and browser are you using?
  • wnajar
    wnajar over 9 years
    Windows 8, Chrome 37.0.2062.120 m
  • wnajar
    wnajar over 9 years
    Probably because the viewport max width is emulated.
  • Jonathan
    Jonathan over 8 years
    @clarif As mentioned below - the bootstrap example uses a fixed height and is not responsive.
  • cfx
    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.