Page 194 - Computer Software Application TP - Volume 1
P. 194
COMPUTER SOFTWARE APPLICATION - CITS
<link href=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css” rel=”stylesheet”>
<script src=”https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js”></script>
</head>
<body>
<div class=”container mt-3”>
<h2>Pagination Alignment </h2>
<p> Default (left-aligned)</p>
<!-- Default (left-aligned) -->
<ul class=”pagination” style=”margin:20px 0”>
<li class=”page-item”><a class=”page-link” href=”#”>Previous</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>1</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>Next</a></li>
</ul>
<p> Center-aligned </p>
<!-- Center-aligned -->
<ul class=”pagination justify-content-center” style=”margin:20px 0”>
<li class=”page-item”><a class=”page-link” href=”#”>Previous</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>1</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>Next</a></li>
</ul>
<p> Right-aligned</p>
<!-- Right-aligned -->
<ul class=”pagination justify-content-end” style=”margin:20px 0”>
<li class=”page-item”><a class=”page-link” href=”#”>Previous</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>1</a></li>
<li class=”page-item”><a class=”page-link” href=”#”>Next</a></li>
</ul>
</div>
</body>
</html>
• Save the program as a .html file
• Open the html file with a web browser
• Verify the output.
179
CITS : IT & ITES - Computer Software Application - Exercise 47