ตัวอย่างผลลัพธ์

css-pagegination-clean-style

โครงสร้าง HTML

<ul id="pagination-clean">
  <li class="previous-off">«Previous</li>
  <li class="active">1</li>
  <li><a href="">2</a></li>
  <li><a href="">3</a></li>
  <li><a href="">4</a></li>
  <li><a href="">5</a></li>
  <li><a href="">6</a></li>
  <li><a href="">7</a></li>
  <li class="next"><a href="">Next »</a></li>
</ul>

CSS

#pagination-clean {
	border:0;
	margin:0;
	padding:0;
}
#pagination-clean li {
	border:0;
	margin:0;
	padding:0;
	font-size:11px;
	list-style:none;
	/* 
	แก้ปัญหา stair case ใน ie6 
	อ่านรายละเอียดวิธีแก้ปัญหา CSS ใน IE6 ได้ที่  https://www.select2web.com/css/css-ie-bug-and-how-to-fix.html 
	*/
	display:inline;
	float:left;
}
#pagination-clean li, #pagination-clean a {
	margin-right:2px;
}
#pagination-clean .previous-off, #pagination-clean .next-off {
	color:#888888;
	display:block;
	float:left;
	font-weight:bold;
	padding:3px 4px;
}
#pagination-clean .next a, #pagination-clean .previous a {
	font-weight:bold;
	border:solid 1px #FFFFFF;
}
#pagination-clean .active {
	color:#00000;
	font-weight:bold;
	display:block;
	float:left;
	padding:4px 6px;
}
#pagination-clean a:link, #pagination-clean a:visited {
	color:#0033CC;
	display:block;
	float:left;
	padding:3px 6px;
	text-decoration:underline;
}
#pagination-clean a:hover {
	text-decoration:none;
}

โค้ดทั้งหมด

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pagination clean style</title>
<style>
#pagination-clean {
	border:0;
	margin:0;
	padding:0;
}
#pagination-clean li {
	border:0;
	margin:0;
	padding:0;
	font-size:11px;
	list-style:none;
	/* 
	แก้ปัญหา stair case ใน ie6 
	อ่านรายละเอียดวิธีแก้ปัญหา CSS ใน IE6 ได้ที่  https://www.select2web.com/css/css-ie-bug-and-how-to-fix.html 
	*/
	display:inline;
	float:left;
}
#pagination-clean li, #pagination-clean a {
	margin-right:2px;
}
#pagination-clean .previous-off, #pagination-clean .next-off {
	color:#888888;
	display:block;
	float:left;
	font-weight:bold;
	padding:3px 4px;
}
#pagination-clean .next a, #pagination-clean .previous a {
	font-weight:bold;
	border:solid 1px #FFFFFF;
}
#pagination-clean .active {
	color:#00000;
	font-weight:bold;
	display:block;
	float:left;
	padding:4px 6px;
}
#pagination-clean a:link, #pagination-clean a:visited {
	color:#0033CC;
	display:block;
	float:left;
	padding:3px 6px;
	text-decoration:underline;
}
#pagination-clean a:hover {
	text-decoration:none;
}
</style>
</head>
 
<body>
<ul id="pagination-clean">
  <li class="previous-off">«Previous</li>
  <li class="active">1</li>
  <li><a href="">2</a></li>
  <li><a href="">3</a></li>
  <li><a href="">4</a></li>
  <li><a href="">5</a></li>
  <li><a href="">6</a></li>
  <li><a href="">7</a></li>
  <li class="next"><a href="">Next »</a></li>
</ul>
</body>
</html>

Demo