content logo

Bootstrap Paginations:

Bootstrap Pagination with Next and Previous Buttons

Make your website more beautiful by using items that match the color theme of your website. In this post, we have prepared a blue pagination with a white background. The numbers in this pagination are normally black and are blue at the time of Hover. The next and previous buttons are located in two paginations. These buttons will be full and blue during your hover. This code uses bootstrap.

#

BS Pagination Code

#

Pure CSS Pagination

#

Simple CSS Pagination

#

Free HTML Pagination Code

<!-- This script got from frontendfreecode.com -->
<nav aria-label="Page navigation">
  <ul class="pagination">
    <li>
      <a href="#" aria-label="Previous">
        <span aria-hidden="true"><i class="fa fa-chevron-left" aria-hidden="true"> Previous</i></span>
      </a>
    </li>
    <li class="active"><a href="#">01</a></li>
    <li><a href="#">02</a></li>
    <li><a href="#">03</a></li>
    <li><a href="#">...</a></li>
    <li><a href="#">08</a></li>
    <li><a href="#">09</a></li>
    <li><a href="#">10</a></li>
    <li>
      <a href="#" aria-label="Next">
        <span aria-hidden="true">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></span>
      </a>
    </li>
  </ul>
</nav><a style="font-size: 8pt; text-decoration: none" target="_blank" href="http://frontendfreecode.com">Free Frontend</a>
                                                                            
* {
	font-family: 'Robot', sans-serif;
	font-weight: 400;
}
body {
	padding: 50px;
	background: #fff;
}
.pagination .active a {
	color: #61a9d0;
	background-color: transparent;
	font-weight: 600;
}
.pagination .active a:hover {
	background-color: transparent;
	color: #143361;
	border: 0px;
}
.pagination .active a:focus {
	background-color: transparent;
	color: #143361;
	outline: none;
}
.pagination li a {
	border: 1px;
	margin-left: 0px;
	color: #707070;
	padding: 7px 2px;
	margin: 0px 20px;
}
.pagination li a:hover {
	background-color: transparent;
	color: #4A90E2;
	padding-bottom: 2px;
	border-bottom: 1px solid;
}
.pagination li a:focus {
	outline: none;
	background-color: transparent;
	/*color:#707070;*/
}
.pagination li:first-child a, .pagination li:last-child a {
	border: 2px solid #3991c0 !important;
	border-radius: 6px;
	margin: 0px;
	padding: 6px 12px;
	border: 2px solid;
	font-size: 14px;
	color: #3991c0;
}
.pagination li:first-child a:hover, .pagination li:last-child a:hover {
	text-decoration: none !important;
	color: #fff;
	background-color: #3991c0;
}
.pagination li:first-child a:focus, .pagination li:last-child a:focus {
	outline: none;
}
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,600" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" >
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- This script got from frontendfreecode.com -->

<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'>
<link href="https://fonts.googleapis.com/css?family=Roboto:400,600" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" >
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
<style>
* {
	font-family: 'Robot', sans-serif;
	font-weight: 400;
}
body {
	padding: 50px;
	background: #fff;
}
.pagination .active a {
	color: #61a9d0;
	background-color: transparent;
	font-weight: 600;
}
.pagination .active a:hover {
	background-color: transparent;
	color: #143361;
	border: 0px;
}
.pagination .active a:focus {
	background-color: transparent;
	color: #143361;
	outline: none;
}
.pagination li a {
	border: 1px;
	margin-left: 0px;
	color: #707070;
	padding: 7px 2px;
	margin: 0px 20px;
}
.pagination li a:hover {
	background-color: transparent;
	color: #4A90E2;
	padding-bottom: 2px;
	border-bottom: 1px solid;
}
.pagination li a:focus {
	outline: none;
	background-color: transparent;
	/*color:#707070;*/
}
.pagination li:first-child a, .pagination li:last-child a {
	border: 2px solid #3991c0 !important;
	border-radius: 6px;
	margin: 0px;
	padding: 6px 12px;
	border: 2px solid;
	font-size: 14px;
	color: #3991c0;
}
.pagination li:first-child a:hover, .pagination li:last-child a:hover {
	text-decoration: none !important;
	color: #fff;
	background-color: #3991c0;
}
.pagination li:first-child a:focus, .pagination li:last-child a:focus {
	outline: none;
}
</style>

</head>
<body>
<nav aria-label="Page navigation">
  <ul class="pagination">
    <li>
      <a href="#" aria-label="Previous">
        <span aria-hidden="true"><i class="fa fa-chevron-left" aria-hidden="true"> Previous</i></span>
      </a>
    </li>
    <li class="active"><a href="#">01</a></li>
    <li><a href="#">02</a></li>
    <li><a href="#">03</a></li>
    <li><a href="#">...</a></li>
    <li><a href="#">08</a></li>
    <li><a href="#">09</a></li>
    <li><a href="#">10</a></li>
    <li>
      <a href="#" aria-label="Next">
        <span aria-hidden="true">Next <i class="fa fa-chevron-right" aria-hidden="true"></i></span>
      </a>
    </li>
  </ul>
</nav><div id="bcl"><a style="font-size:8pt;text-decoration:none;" href="http://www.devanswer.com">Free Frontend</a></div>

</body>
</html>
Preview