Bootstrap 5 Basic
Bootstrap 5 Flexbox
Pagination in Bootstrap 5 is a navigation component that allows users to move between related content across multiple pages.
The <ul>
element with the pagination
class. Then add the .page-item
to each <li>
element and a .page-link
class to each link inside <li>
Try it yourself
To indicate the current page or disable navigation options. .active
class is used to "highlight" the current page..disabled
class is used for un-clickable links:
Try it yourself
You can use .pagination-lg
or .pagination-sm
to make the pagination larger or smaller:
Try it yourself
To align pagination, use Bootstrap's flex utility classes:
Try it yourself