8

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

AlGallaf
  • 627
  • 6
  • 15
  • 28

2 Answers2

7

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;
    }
}
albertedevigo
  • 18,262
  • 6
  • 52
  • 58
3

Your demo doesn't work anymore but the best Bootstrap sticky footer I've found is: https://gist.github.com/aalaap/3066704

cfx
  • 3,311
  • 2
  • 35
  • 45
  • The example is still online but the URL changed: http://getbootstrap.com/examples/sticky-footer-navbar/ – clarif Mar 19 '14 at 14:32
  • 2
    @clarif As mentioned below - the bootstrap example uses a fixed height and is not responsive. – Jonathan Sep 05 '15 at 04:18
  • @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. – cfx Dec 25 '15 at 14:10