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
Mary-Kate OlsenOriginal
2024-12-07 00:09:12855browse

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>

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!

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