Pagination using HTML and CSS

Pagination in HTML and CSS - 



Pagination in HTML and CSS





HTML File Content - 



<!DOCTYPE html>
<html>
<head>
<title>Pagination</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>

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

</body>
</html>


CSS File Content - 


*{
margin: 0;
padding: 0;
font-family: sans-serif;
box-sizing: border-box;
}
body{
height: 100vh;
display: grid;
place-items: center;
}
a{
text-decoration: none;
font-size: 40px;
margin: 20px;
padding: 20px 25px;
border-radius: 50%;
}
a:hover, a:nth-child(2){
background-color: #cc66ff;
color: white;
transition: 200ms ease;
}

Comments