Are you stuck creating cool looking pagination for your web pages? Have you seen cool pagination links at the bottom of Digg.com?
This will help you create the most simple & cool looking CSS pagination links bar. The links are kept list based for achieving clear and semantic layout. The bar itself can easily be left or right aligned, by modifying the “text-align” attribute. Cool Huh!
Read More to see this code
THE HTML CODE IS AS BELOW:
<div class=”pagination”>
<ul>
<li><a href=”#” class=”prevnext disablelink”>« previous</a></li>
<li><a href=”#” class=”currentpage”>1</a></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><a href=”#”>8</a></li>
<li><a href=”#”>9</a>…</li>
<li><a href=”#”>15</a></li>
<li><a href=”#”>16</a></li>
<li><a href=”#” class=”prevnext”>next »</a></li>
</ul>
</div>
THE CSS CODE IS AS BELOW:
<style type=”text/css”>
.pagination{
padding: 2px;
}.pagination ul{
margin: 0;
padding: 0;
text-align: left; /*Set to “right” to right align pagination interface*/
font-size: 16px;
}.pagination li{
list-style-type: none;
display: inline;
padding-bottom: 1px;
}.pagination a, .pagination a:visited{
padding: 0 5px;
border: 1px solid #9aafe5;
text-decoration: none;
color: #2e6ab1;
}.pagination a:hover, .pagination a:active{
border: 1px solid #2b66a5;
color: #000;
background-color: #FFFF80;
}.pagination a.currentpage{
background-color: #2e6ab1;
color: #FFF !important;
border-color: #2b66a5;
font-weight: bold;
cursor: default;
}.pagination a.disablelink, .pagination a.disablelink:hover{
background-color: white;
cursor: default;
color: #929292;
border-color: #929292;
font-weight: normal !important;
}.pagination a.prevnext{
font-weight: bold;
}</style>

This CSS Pagination does not work, it displays as an unordered list and not as shown in the example?!!! something is wrong somewhere in the coding, I have copied it three times just in case and placed the code on a page of it’s own but still does not work. Any help will be appreciated as I really like the look of the pagination.
Nice, but.. how do i get that working within PHP and MYSQL, by loading content from MySQL database table