From: Kevin Ingersoll Date: Fri, 3 May 2013 03:22:27 +0000 (+1200) Subject: Use padding instead of #push with box-sizing: border-box X-Git-Tag: v3.0.0~81^2~11^2~1^2~37^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0aaa222a66b2587ac68c4c6fcee4c6b0f3453bf;p=thirdparty%2Fbootstrap.git Use padding instead of #push with box-sizing: border-box --- diff --git a/sticky-footer-navbar.html b/sticky-footer-navbar.html index 429b74f918..fe6681ef69 100644 --- a/sticky-footer-navbar.html +++ b/sticky-footer-navbar.html @@ -22,14 +22,13 @@ title: Sticky footer with navbar template height: 100%; /* Negative indent footer by its height */ margin: 0 auto -60px; + /* Pad bottom by footer height */ + padding: 0 0 60px; } /* Set the fixed height of the footer here */ - #push, #footer { height: 60px; - } - #footer { background-color: #f5f5f5; } @@ -106,8 +105,6 @@ title: Sticky footer with navbar template

Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS. A fixed navbar has been added within #wrap with padding-top: 60px; on the .container.

Back to the default sticky footer minus the navbar.

- -
- -