Home > Web Front-end > CSS Tutorial > Why Isn't My Bootstrap 3 Sticky Footer Sticking?

Why Isn't My Bootstrap 3 Sticky Footer Sticking?

Linda Hamilton
Release: 2024-12-08 14:43:11
Original
890 people have browsed it

Why Isn't My Bootstrap 3 Sticky Footer Sticking?

Mastering the Twitter Bootstrap 3 Sticky Footer

Question:

Despite utilizing the Twitter Bootstrap 3 starter template, the sticky footer refuses to adhere to the bottom of the page. What can be the cause?

Answer:

To ensure a sticky footer in Twitter Bootstrap 3, simply incorporate the "navbar-fixed-bottom" class to your footer:

<div class="footer navbar-fixed-bottom">
Copy after login

This alteration guarantees that your footer remains anchored to the bottom of the viewport, regardless of the page length.

The above is the detailed content of Why Isn't My Bootstrap 3 Sticky Footer Sticking?. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template