Wednesday, 6 September 2017

How To Create CSS Pagination for website with Example

How To Create CSS Pagination for website with Example
code , Pagination , How to , Pagination With Example , Pagination Example , Pagination Example With Code , Create Pagination using css for websites.

Example :

<!DOCTYPE html>
<html>
<head>
<style>
.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}
</style>
</head>
<body>

<h2>Pagination</h2>
<p>Responsive pagination with hover effects:</p>

<div class="pagination">
  <a href="#">&laquo;</a>
  <a href="#">1</a>
  <a class="active" href="#">2</a>
  <a href="#">3</a>
  <a href="#">4</a>
  <a href="#">5</a>
  <a href="#">6</a>
  <a href="#">&raquo;</a>
</div>

</body>
</html>

Post a Comment

Whatsapp Button works on Mobile Device only

Start typing and press Enter to search