Foundation CSS Pagination Basics
Last Updated :
07 Mar, 2022
Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay, Mozilla, Adobe, and even Disney. The framework is built on Saas-like bootstrap. It is more sophisticated, flexible, and easily customizable. It also comes with CLI, so it’s easy to use it with module bundlers. It offers the Fastclick.js tool for faster rendering on mobile devices.
Pagination is used to separate the content into discrete pages or simply it is the process of dividing the document into pages and providing them with numbers.
Foundation CSS Pagination Basics Class:
- pagination: This class is used to create a pagination-type styling.
- current: This is used on a <li> to mark the current page.
- ellipsis: This class creates a "..." by which the user feels there are many pages between.
Syntax:
<nav aria-label="Pagination">
<ul class="pagination">
<li><a href="#" aria-label="Page 1">1</a></li>
<li><a href="#" aria-label="Page 2">2</a></li>
...
</ul>
</nav>
Example 1: This is a basic example illustrating Pagination Basics in Foundation CSS.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Foundation CSS Pagination Basics
</title>
<!-- Compressed CSS -->
<link rel="stylesheet"
href=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css">
<link rel="stylesheet"
href=
"//cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.min.css" />
</head>
<body>
<center>
<h1 style="color: green;">
GeeksforGeeks
</h1>
<strong>
Foundation CSS Pagination Basics
</strong>
</center>
<nav aria-label="Pagination">
<ul class="pagination">
<li class="pagination-previous disabled">Previous</li>
<li class="current">
<span class="show-for-sr">You're on page</span> 1
</li>
<li>
<a href="#" aria-label="Page 2">2</a>
</li>
<li>
<a href="#" aria-label="Page 3">3</a>
</li>
<li>
<a href="#" aria-label="Page 4">4</a>
</li>
<li class="ellipsis"></li>
<li>
<a href="#" aria-label="Page 12">12</a>
</li>
<li>
<a href="#" aria-label="Page 13">13</a>
</li>
<li class="pagination-next">
<a href="#" aria-label="Next page">Next</a>
</li>
</ul>
</nav>
</body>
</html>
Output:

Example 2: This example describes the Pagination Basics with roman numbers in Foundation CSS.
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>
Foundation CSS Pagination Basics
</title>
<!-- Compressed CSS -->
<link rel="stylesheet"
href=
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/foundation.min.css">
<link rel="stylesheet"
href=
"//cdnjs.cloudflare.com/ajax/libs/foundicons/3.0.0/foundation-icons.min.css" />
</head>
<body>
<center>
<h1 style="color: green;">
GeeksforGeeks
</h1>
<strong>
Foundation CSS Pagination Basics
</strong>
</center>
<nav aria-label="Pagination">
<ul class="pagination s">
<li class="pagination-previous disabled">Previous</li>
<li class="current">
<span class="show-for-sr">You're on page</span> I
</li>
<li><a href="#" aria-label="Page 2">II</a></li>
<li><a href="#" aria-label="Page 3">III</a></li>
<li><a href="#" aria-label="Page 4">IV</a></li>
<li class="ellipsis"></li>
<li><a href="#" aria-label="Page 12">XII</a></li>
<li><a href="#" aria-label="Page 13">XIII</a></li>
<li class="pagination-next">
<a href="#" aria-label="Next page">Next</a>
</li>
</ul>
</nav>
</body>
</html>
Output:
Reference: https://get.foundation/sites/docs/pagination.html#basics
Similar Reads
Foundation CSS Pagination Foundation CSS is the frontend framework of CSS that is used to build responsive websites, apps, and emails that work perfectly on any device. It is written using HTML, CSS, and Javascript and is used by many famous companies like Amazon, Facebook, eBay, etc. It uses packages like Grunt and Libsass
3 min read
Foundation CSS Pagination Centered Foundation CSS is an open-source & responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing & can be accessible to any device. It is used by many companies such as Facebook, eBay,
2 min read
Foundation CSS Kitchen Sink Pagination Foundation CSS is the frontend framework of CSS that is used to build responsive websites, apps, and emails that work perfectly on any device. It is written using HTML, CSS, and Javascript and is used by many famous companies like Amazon, Facebook, eBay, etc. It uses packages like Grunt and Libsass
2 min read
Foundation CSS Pagination Sass Reference Foundation CSS is an open-source and responsive front-end framework built by ZURB foundation in September 2011, that makes it easy to design beautiful responsive websites, apps, and emails that look amazing and can be accessible to any device. It is used by many companies such as Facebook, eBay, Moz
4 min read
Pagination on an API MongoDB is an efficient NoSQL database. It is used across the software industry to a great extent as it is open source, easily configurable, maintenance wise it is easier, upgradation wise, portability wise it plays a major role and hence it is a more like NoSQL database. In this tutorial, let us se
4 min read