With CSS you can create many kind of pagination effects that may help you to design your website.
In this tutorial you will cover about the following pagination effect properties.
:hover selector : this property used to change the color of each page link when moving the mouse over them:
border-radius: this property used if you want a rounded "active" and "hover" button.
transition : this property used to the page links to create a transition effect on hover
border : this property used to add borders to the pagination
font-size : this property used the size of the pagination
width :this property used to change the width of a button
border : this property used to create a bordered button group
Example : Pagination
<!DOCTYPE html>
<html>
<head>
<style>
.pagination {
display: inline-block;
}
.pagination a {
color: black;
float: left;
padding: 8px 16px;
text-decoration: none;
transition: background-color .3s;
border: 1px solid #ddd;
}
.pagination a.active {
background-color: blue;
color: white;
border: 1px solid red;
}
.pagination a:hover:not(.active) {background-color: yellow;}
</style>
</head>
<body>
<p>Webpage Number with Boarder.</p>
<div class="pagination">
<a href="#">«</a>
<a href="#">1</a>
<a href="#" class="active">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>
<a href="#">6</a>
<a href="#">»</a>
</div>
</body>
</html>
When the above code is compiled , it produces the following result.
Result
Webpage Number with Boarder.