| Pagination Links/Buttons |
| Tuesday, 19 September 2006 | |
|
Pagination Links/Buttons This tutorial will show you how to create pagination links/buttons that you see on websites such as digg.com. CSS Code: .pagination{ This sets the padding for our div. .pagination ul{ This removes the default margins and padding of the unordered list. .pagination li{ This removes the styling for the list items and makes them line up one after another. .pagination a, .pagination a:visited{ This sets the styling for the links .pagination a:hover, .pagination a:active{ This sets the styling for the links when you hover over them and click them .pagination li.currentpage{ This sets the styling of the current page in view, in this example page 3. .pagination li.disablepage{ This sets the styling for pages that are not clickable such as the previous button when you are on page 1 and the next button when you are on the last page. .pagination li.nextpage{ This makes the next button bold. This is purely optional but Digg use it and it makes it look neat. * html .pagination li.currentpage, * html .pagination li.disablepage{ This sets extra styling for the links/buttons that have no hyperlinks attached to them. This is to fix some styling problems browsers below IE6. HTML Code: <div class="pagination"> |
| < Prev | Next > |
|---|















