Home > Web Front-end > CSS Tutorial > How to Create a Sticky Footer with Bootstrap 3?

How to Create a Sticky Footer with Bootstrap 3?

Mary-Kate Olsen
Release: 2024-12-07 00:09:12
Original
893 people have browsed it

How to Create a Sticky Footer with Bootstrap 3?

Sticky Footer with Twitter Bootstrap 3

In Twitter Bootstrap 3, the sticky footer is achieved using the class "navbar-fixed-bottom." This class ensures that the footer remains fixed to the bottom of the page regardless of content length.

Solution:

To create a sticky footer using Twitter Bootstrap 3, follow these steps:

  1. Wrap your footer content in a
    element with the class "footer navbar-fixed-bottom." For example:
<div class="footer navbar-fixed-bottom">
  <!-- Footer content here -->
</div>
Copy after login

The above is the detailed content of How to Create a Sticky Footer with Bootstrap 3?. 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