Paginazione





Codice HTML

<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>


Codice CSS

/* Pagination links */
.pagination a {
 color: black;
 float: left;
 padding: 8px 16px;
 text-decoration: none;
 transition: background-color .3s;
}

/* Style the active/current link */ .pagination a.active { background-color: dodgerblue; color: white; }

/* Add a grey background color on mouse-over */ .pagination a:hover:not(.active) {background-color: #ddd;}