Usage of Bootstrap previous class to left align the links

Use the .previous class in Bootstrap to left align the links. You can try to run the following code to implement the .previous class −

Example

<!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>
      <h3>Answers</h3>
      <br>
         <ul class = "pager">
            <li class = "previous"><a href = "#">← Older</a></li>
            <li class = "next"><a href = "#">Newer →</a></li>
         </ul>
   </body>
</html>
Updated on: 2026-03-11T22:50:41+05:30

160 Views

Advertisements