Bootstrap with CSS
- Bootstrap - Responsive utilities
- Bootstrap - Helper Classes
- Bootstrap - Images
- Bootstrap - Buttons
- Bootstrap - Forms
- Bootstrap - Tables
- Bootstrap - Code
- Bootstrap - Typography
- Bootstrap - CSS Overview
- Bootstrap - Grid System
Bootstrap Layout Components
- Bootstrap - Wells
- Bootstrap - Panels
- Bootstrap - List Group
- Bootstrap - Media Object
- Bootstrap - Progress Bars
- Bootstrap - Alerts
- Bootstrap - Thumbnails
- Bootstrap - Page Header
- Bootstrap - Jumbotron
- Bootstrap - Badges
- Bootstrap - Labels
- Bootstrap - Pagination
- Bootstrap - Breadcrumb
- Bootstrap - Navbar
- Bootstrap - Navigation Elements
- Bootstrap - Input Groups
- Bootstrap - Button Dropdowns
- Bootstrap - Button Groups
- Bootstrap - Dropdowns
- Bootstrap - Glyphicons
Bootstrap Plugins
- Bootstrap - Affix Plugin
- Bootstrap - Carousel Plugin
- Bootstrap - Collapse Plugin
- Bootstrap - Button Plugin
- Bootstrap - Alert Plugin
- Bootstrap - Popover Plugin
- Bootstrap - Tooltip Plugin
- Bootstrap - Tab Plugin
- Bootstrap - Scrollspy Plugin
- Bootstrap - Dropdown Plugin
- Bootstrap - Modal Plugin
- Bootstrap - Transition Plugin
- Bootstrap - Plugins Overview
Bootstrap Demos
- Bootstrap - featured Demo
- Bootstrap - Icons Demo
- Bootstrap - Social Icons Demo
- Bootstrap - Calendar Demo
- Bootstrap - Map Demo
- Bootstrap - Caption Demo
- Bootstrap - Tabbed slider Demo
- Bootstrap - Ajax Demo
- Bootstrap - Admin Interface Demo
- Bootstrap - Alert Demo
- Bootstrap - Time line Demo
- Bootstrap - Slider Demo
- Bootstrap - Material Design Demo
- Bootstrap - Blog Demo
- Bootstrap - Navigation Demo
- Bootstrap - Responsive Demo
- Bootstrap - Images Demo
- Bootstrap - Buttons Demo
- Bootstrap - Form Demo
- Bootstrap - Table Demo
- Bootstrap - Grid Demo
Bootstrap Useful Resources
- Bootstrap - Discussion
- Bootstrap - Useful Resources
- Bootstrap - Quick Guide
- Bootstrap - Questions and Answers
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Bootstrap - Pagination
This chapter discusses about the pagination feature that Bootstrap supports. Pagination, an unordered pst is handled by Bootstrap pke a lot of other interface elements.
Pagination
The following table psts the classes that Bootstrap provides to handle pagination.
Class | Description | Sample code |
---|---|---|
.pagination | Add this class to get the pagination on your page. |
<ul class = "pagination"> <p><a href = "#">«</a></p> <p><a href = "#">1</a></p> ....... </ul> |
.disabled, .active | You can customize pnks by using .disabled for uncpckable pnks and .active to indicate the current page. |
<ul class = "pagination"> <p class = "disabled"><a href = "#">«</a></p> <p class = "active"><a href = "#">1<span class = "sr-only">(current)</span></a></p> ....... </ul> |
.pagination-lg, .pagination-sm | Use these classes to get different size items. |
<ul class = "pagination pagination-lg">...</ul> <ul class = "pagination">...</ul> <ul class = "pagination pagination-sm">...</ul> |
Default Pagination
The following example demonstrates the use of class .pagination discussed in the above table −
<ul class = "pagination"> <p><a href = "#">«</a></p> <p><a href = "#">1</a></p> <p><a href = "#">2</a></p> <p><a href = "#">3</a></p> <p><a href = "#">4</a></p> <p><a href = "#">5</a></p> <p><a href = "#">»</a></p> </ul>
States
The following example demonstrates the use of class .disabled, .active discussed in the above table −
<ul class = "pagination"> <p><a href = "#">«</a></p> <p class = "active"><a href = "#">1</a></p> <p class = "disabled"><a href = "#">2</a></p> <p><a href = "#">3</a></p> <p><a href = "#">4</a></p> <p><a href = "#">5</a></p> <p><a href = "#">»</a></p> </ul>
Sizing
The following example demonstrates the use of classes for sizing, .pagination-* discussed in the above table −
<ul class = "pagination pagination-lg"> <p><a href = "#">«</a></p> <p><a href = "#">1</a></p> <p><a href = "#">2</a></p> <p><a href = "#">3</a></p> <p><a href = "#">4</a></p> <p><a href = "#">5</a></p> <p><a href = "#">»</a></p> </ul> <br> <ul class = "pagination"> <p><a href = "#">«</a></p> <p><a href = "#">1</a></p> <p><a href = "#">2</a></p> <p><a href = "#">3</a></p> <p><a href = "#">4</a></p> <p><a href = "#">5</a></p> <p><a href = "#">»</a></p> </ul> <br> <ul class = "pagination pagination-sm"> <p><a href = "#">«</a></p> <p><a href = "#">1</a></p> <p><a href = "#">2</a></p> <p><a href = "#">3</a></p> <p><a href = "#">4</a></p> <p><a href = "#">5</a></p> <p><a href = "#">»</a></p> </ul>
Pager
If you need to create simple pagination pnks that go beyond text, the pager can work quite well. Like the pagination pnks, the pager is an unordered pst. By default the pnks are centered. The following table psts the classes Bootstrap provides for pager.
Class | Description | Sample code |
---|---|---|
.pager | Add this class to get the pager pnks. |
<ul class = "pager"> <p><a href = "#">Previous</a></p> <p><a href = "#">Next</a></p> </ul> |
.previous, .next | Use class .previous to left apgn and .next to right-apgn the pnks. |
<ul class = "pager"> <p class = "previous"><a href = "#">← Older</a></p> <p class = "next"><a href = "#">Newer →</a></p> </ul> |
.disabled | Add this class to get a muted look. |
<ul class = "pager"> <p class = "previous disabled"><a href = "#">← Older</a></p> <p class = "next"><a href = "#">Newer →</a></p> </ul> |
Default Pager
The following example demonstrates the use of class .pager discussed in the above table −
<ul class = "pager"> <p><a href = "#">Previous</a></p> <p><a href = "#">Next</a></p> </ul>
Apgned Links
The following example demonstrates the use of classes for apgnment, .previous, .next discussed in the above table −
<ul class = "pager"> <p class = "previous"><a href = "#">← Older</a></p> <p class = "next"><a href = "#">Newer →</a></p> </ul>
States
The following example demonstrates the use of class .disabled discussed in the above table −
<ul class = "pager"> <p class = "previous disabled"><a href = "#">← Older</a></p> <p class = "next"><a href = "#">Newer →</a></p> </ul>Advertisements