Pagination CSS style

Source: Internet
Author: User

Page

  1. <DivClass = "pagination">
  2. <Ul>
  3. <LiClass = "disablepage">Previous Page</LI>
  4. <LiClass = "currentpage">1</LI>
  5. <Li> <Href = "#">2</A> </LI>
  6. <Li> <Href = "#">3</A> </LI>
  7. <Li> <Href = "#">4</A> </LI>
  8. <Li> <Href = "#">5</A> </LI>
  9. <Li> <Href = "#">6</A> </LI>
  10. <Li> <Href = "#">7</A> </LI>
  11. <Li> <Href = "#">8</A> </LI>
  12. <Li> <Href = "#">9</A>...</LI>
  13. <Li> <Href = "#">15</A> </LI>
  14. <Li> <Href = "#">16</A> </LI>
  15. <LiClass = "nextpage"> <Href = "#">Next Page</A> </LI>
  16. </Ul>
  17. </Div>

CSS

  1. . Pagination {
  2. Padding: 2px;
  3. }
  4. . Pagination ul {
  5. Margin: 0;
  6. Padding: 0;
  7. Text-align: Left;/* set to "right" to right align pagination interface */
  8. Font-size: 12px;
  9. }
  10. . Pagination Li {
  11. List-style-type: none;
  12. Display: inline;
  13. Padding-bottom: 1px;
  14. }
  15. . Pagination A,. pagination A: visited {
  16. Padding: 0 5px;
  17. Border: 1px solid #9aafe5;
  18. Text-Decoration: none;
  19. Color: #2e6ab1;
  20. }
  21. . Pagination A: hover,. pagination A: active {
  22. Border: 1px solid #2b66a5;
  23. Color: #000;
  24. Background-color: lightyellow;
  25. }
  26. . Pagination Li. currentpage {
  27. Font-weight: bold;
  28. Padding: 0 5px;
  29. Border: 1px solid Navy;
  30. Background-color: #2e6ab1;
  31. Color: # FFF;
  32. }
  33. . Pagination Li. disablepage {
  34. Padding: 0 5px;
  35. Border: 1px solid #929292;
  36. Color: #929292;
  37. }
  38. . Pagination Li. nextpage {
  39. Font-weight: bold;
  40. }
  41. * Html. pagination Li. currentpage, * html. pagination Li. disablepage {/* IE 6 and below. Adjust non linked Lis slightly to account for bugs */
  42. Margin-Right: 5px;
  43. Padding-Right: 0;
  44. }

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.