YouTip LogoYouTip

Bootstrap Pagination

This chapter will explain the pagination feature supported by Bootstrap. Pagination is an unordered list, and Bootstrap handles pagination in the same way it handles other interface elements. ## Pagination The following table lists the classes provided by Bootstrap for handling pagination. | Class | Description | Example Code | | --- | --- | --- | | .pagination | Add this class to display pagination on the page. | | | .disabled, .active | You can customize links by using **.disabled** to define non-clickable links and using **.active** to indicate the current page. | | | .pagination-lg, .pagination-sm | Use these classes to get different sized items. |
    ...
    ...
    ...
| ### Default Pagination The following example demonstrates the usage of the class **.pagination** discussed in the table above: ## Example [Try it Β»](#) The result is as follows: ![Image 1: Default Pagination](#) ### Pagination States The following example demonstrates the usage of the classes **.disabled, .active** discussed in the table above: ## Example [Try it Β»](#) The result is as follows: ![Image 2: Pagination States](#) ### Pagination Sizes The following example demonstrates the usage of the classes **.pagination-*** discussed in the table above: ## Example

[Try it Β»](#) The result is as follows: ![Image 3: Pagination Sizes](#) ## Pager If you want to create simple pagination links to provide navigation for users, you can use the pager. Like pagination links, the pager is also an unordered list. By default, the links are centered. The following table lists the classes provided by Bootstrap for handling the pager. | Class | Description | Example Code | | --- | --- | --- | | .pager | Add this class to get pager links. | | | .previous, .next | Use the class **.previous** to align links to the left, and use **.next** to align links to the right. | | | .disabled | Add this class to disable the corresponding button. | | ### Default Pager The following example demonstrates the usage of the class **.pager** discussed in the table above: ## Example [Try it Β»](#) The result is as follows: ![Image 4: Default Pager](#) ### Aligned Links The following example demonstrates the usage of the classes **.previous, .next** discussed in the table above: ## Example [Try it Β»](#) The result is as follows: ![Image 5: Aligned Links in Pager](#) ### Pager States The following example demonstrates the usage of the class **.disabled** discussed in the table above: ## Example [Try it Β»](#) The result is as follows: ![Image 6: Pager States](#) * * * ## More Pagination Examples | Class | Description | Example | | --- | --- | --- | | .pager | Simple pagination links, centered. | (#) | | .previous | Previous page button style in .pager, left-aligned. | (#) | | .next | Next page button style in .pager, right-aligned. | (#) | | .disabled | Disabled link. | (#) | | .pagination | Pagination links. | (#) | | .pagination-lg | Larger pagination links. | (#) | | .pagination-sm | Smaller pagination links. | (#) | | .disabled | Disabled link. | (#) | | .active | Current page link style. | (#) |
← Bootstrap LabelsBootstrap Breadcrumbs β†’