Responsive Bootstrap Sticky Footer Height
Asked Answered
Q

2

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

Quench answered 5/6, 2013 at 8:36 Comment(0)
I
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;
    }
}
Isoelectronic answered 5/6, 2013 at 8:47 Comment(4)
This doesn't seem to work anymore with the latest version of Bootstrap?Desmund
I cannot reproduce the original issue with the latest version of Bootstrap, could you please report what OS and browser are you using?Isoelectronic
Windows 8, Chrome 37.0.2062.120 mDesmund
Probably because the viewport max width is emulated.Desmund
A
3

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

Amontillado answered 28/7, 2013 at 7:11 Comment(3)
The example is still online but the URL changed: getbootstrap.com/examples/sticky-footer-navbarTours
@Tours As mentioned below - the bootstrap example uses a fixed height and is not responsive.Winograd
@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.Amontillado

© 2022 - 2024 — McMap. All rights reserved.