FREE Web Template Download
HTML CSS JAVASCRIPT SQL PHP BOOTSTRAP JQUERY ANGULARJS TUTORIALS REFERENCES EXAMPLES Blog
 

TheBestTutorials.css Pagination


TheBestTutorials.css Paginations

If you have a web site with lots of pages, you may wish to add some sort of pagination to each page:


Basic Pagination

To create a basic pagination, add the subhodaya-pagination class to an <ul> element:

Example

<ul class="subhodaya-pagination">
  <li><a href="#">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>
</ul>
Try It Yourself »

Pagination Arrows

Use HTML entities or icons from an icon library to add pagination arrows:

Example

<ul class="subhodaya-pagination">
  <li><a href="#">&laquo;</a></li>
  <li><a href="#">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="#">&raquo;</a></li>
</ul>
Try It Yourself »

Active/Current Link

Use one of the subhodaya-color classes to indicate which page the user is on:

Example

<ul class="subhodaya-pagination">
  <li><a href="#">&laquo;</a></li>
  <li><a class="subhodaya-green" href="#">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="#">&raquo;</a></li>
</ul>
Try It Yourself »

Hover Color

By default, when you move the mouse over the pagination links, they get a grey background color. Use any of the subhodaya-hover-color classes to change the hover color:

Example

<ul class="subhodaya-pagination">
  <li><a href="#" class="subhodaya-hover-purple">&laquo;</a></li>
  <li><a href="#" class="subhodaya-hover-green">1</a></li>
  <li><a href="#" class="subhodaya-hover-red">2</a></li>
  <li><a href="#" class="subhodaya-hover-blue">3</a></li>
  <li><a href="#" class="subhodaya-hover-black">4</a></li>
  <li><a href="#" class="subhodaya-hover-orange">&raquo;</a></li>
</ul>
Try It Yourself »

Pagination Sizing

Use TheBestTutorials-tiny, TheBestTutorials-small, TheBestTutorials-large, TheBestTutorials-xlarge, TheBestTutorials-xxlarge or TheBestTutorials-xxxlarge to size the pagination:

Example

<ul class="subhodaya-pagination subhodaya-xlarge">
Try It Yourself »

Bordered Pagination

Add the TheBestTutorials-border class to create a pagination with borders:

Example

<ul class="subhodaya-pagination subhodaya-border">
Try It Yourself »

Rounded Borders

Add the TheBestTutorials-round class next to TheBestTutorials-border for rounded borders:

Example

<ul class="subhodaya-pagination subhodaya-border subhodaya-round">
Try It Yourself »

Centered Pagination

To center the pagination, wrap a <div> element with class="subhodaya-center" around <ul>:

Example

<div class="subhodaya-center">
  <ul class="subhodaya-pagination subhodaya-xlarge">
    ...
  </ul>
</div>
Try It Yourself »

Other Pagination Examples

Next/previous Example

<ul class="subhodaya-pagination subhodaya-border subhodaya-round">
  <li><a href="#">&#10094; Previous</a></li>
  <li><a href="#">Next &#10095;</a></li>
</ul>
Try It Yourself »

Inline Menu Example

<ul class="subhodaya-pagination subhodaya-light-grey">
  <li><a href="#" class="subhodaya-dark-grey">Home</a></li>
  <li><a href="#">Link 1</a></li>
  <li><a href="#">Link 2</a></li>
  <li><a href="#">Link 3</a></li>
</ul>
Try It Yourself »