Sizing Bootstrap pagination-* class


To size Bootstrap pagination-* class, use the pagination-lg and pagination-sm class.

You can try to run the following code to size pagination −

Example

Live Demo

<!DOCTYPE html>
<html>
   <head>
      <title>Bootstrap Example</title>
      <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
      <script src = "/scripts/jquery.min.js"></script>
      <script src = "/bootstrap/js/bootstrap.min.js"></script>
   </head>
   <body>
      <h2>Questions</h2>
      <p>Large Pagination</p>
      <ul class = "pagination pagination-lg">
         <li><a href = "#">«</a></li>
         <li><a href = "#">Q1</a></li>
         <li><a href = "#">Q2</a></li>
         <li><a href = "#">Q3</a></li>
         <li><a href = "#">Q4</a></li>
         <li><a href = "#">Q5</a></li>
         <li><a href = "#">»</a></li>
      </ul>
      <br>
      <p>Small Pagination</p>
      <ul class = "pagination pagination-sm">
         <li><a href = "#">«</a></li>
         <li><a href = "#">Q1</a></li>
         <li><a href = "#">Q2</a></li>  
         <li><a href = "#">Q3</a></li>
         <li><a href = "#">Q4</a></li>
         <li><a href = "#">Q5</a></li>
         <li><a href = "#">»</a></li>
      </ul>
   </body>
</html>

Updated on: 12-Jun-2020

211 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements