Responsive Bootstrap Sticky Footer Height

AlGallaf picture AlGallaf · Jun 5, 2013 · Viewed 16k times · Source

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

Answer

albertedevigo picture albertedevigo · Jun 5, 2013

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;
    }
}