Bootstrap Pagination

Pagination is mostly important if a website contains a lot of webpages. Bootstrap pagination consist of styled link, which are organized in a horizontal list. For a basic pagination you have to use .pagination class inside the <ul> tag.

Example:

<ul class="pagination">
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
<li><a href="#"> 3 </a></li>
<li><a href="#"> 4 </a></li>
<li><a href="#"> 5 </a></li>
<li><a href="#"> 6 </a></li>
</ul>

Run Example

Bootstrap Pagination active Class

By active state you can understand the current page on which you are active. To use active state you should add .active class within the specific <li> tag.

Example:

<ul class="pagination">
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
<li><a href="#"> 3 </a></li>
<li class="active"><a href="#"> 4 </a></li>
<li><a href="#"> 5 </a></li>
<li><a href="#"> 6 </a></li>
</ul>

Run Example

Bootstrap Pagination disabled Class

To use disable state you should add .disabled class within the specific <li> tag.

Example:

<ul class="pagination">
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
<li><a href="#"> 3 </a></li>
<li class="disabled"><a href="#"> 4 </a></li>
<li><a href="#"> 5 </a></li>
<li><a href="#"> 6 </a></li>
</ul>

Run Example

Sizing of Pagination

You can increase or decrease the size of pagination using .pagination-lg or .pagination-sm class accordingly.

Example:

<ul class="pagination pagination-lg">
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
<li><a href="#"> 3 </a></li>
<li><a href="#"> 4 </a></li>
<li><a href="#"> 5 </a></li>
<li><a href="#"> 6 </a></li>
</ul>
<ul class="pagination pagination-sm">
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
<li><a href="#"> 3 </a></li>
<li><a href="#"> 4 </a></li>
<li><a href="#"> 5 </a></li>
<li><a href="#"> 6 </a></li>
</ul>

Run Example

Bootstrap breadcrumb Class

There is an another form of Bootstrap pagination. You can use it by adding .breadcrumb class. It specifies the active location inside a navigational hierarchy.

Example:

<ul class="breadcrumb">
<li><a href="#"> Home </a></li>
<li><a href="#"> Music </a></li>
<li><a href="#"> Audio </a></li>
<li class="active"> AR Rahman </li>
</ul>

Run Example