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
Linda HamiltonOriginal
2024-12-08 14:43:11959browse

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">

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!

Statement:
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