Skip to content

Table Footer Pagination

A copy-paste pagination component in pure HTML & CSS. Zero dependencies, framework-agnostic, MIT-licensed.

PaginationHTMLCSSany framework

Copy into your project

HTML
<nav aria-label="Pagination" class="nuda-pg2-table">
  <span class="nuda-pg2-table__count">128 rows</span>
  <label class="nuda-pg2-table__perpage">
    <span class="nuda-pg2-table__perpage-text">Rows per page</span>
    <select class="nuda-pg2-table__select" aria-label="Rows per page">
      <option value="10">10</option>
      <option value="25" selected>25</option>
      <option value="50">50</option>
    </select>
  </label>
  <div class="nuda-pg2-table__pages">
    <button class="nuda-pg2-table__btn nuda-pg2-table__btn--disabled" aria-disabled="true" aria-label="Previous page">‹</button>
    <span class="nuda-pg2-table__range">1–25 of 128</span>
    <button class="nuda-pg2-table__btn" aria-label="Next page">›</button>
  </div>
</nav>
CSS
.nuda-pg2-table {
  width: 320px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}

.nuda-pg2-table__count {
  font-size: .72rem;
  color: #777;
}

.nuda-pg2-table__perpage {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  font-size: .68rem;
  color: #777;
}

.nuda-pg2-table__select {
  height: 36px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  color: #fafafa;
  font-size: .72rem;
  padding: 0 .4rem;
  cursor: pointer;
}

.nuda-pg2-table__select:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

.nuda-pg2-table__pages {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nuda-pg2-table__range {
  font-size: .7rem;
  color: #999;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: center;
}

.nuda-pg2-table__btn {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: #161616;
  color: #cfcfcf;
  cursor: pointer;
  transition: border-color .15s,color .15s;
}

.nuda-pg2-table__btn:hover {
  border-color: rgba(228,255,84,.4);
  color: #fafafa;
}

.nuda-pg2-table__btn:focus-visible {
  outline: 2px solid #e4ff54;
  outline-offset: 2px;
}

.nuda-pg2-table__btn--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (prefers-reduced-motion:reduce) {
  .nuda-pg2-table__btn {
    transition: none;
  }
}

How to use Table Footer Pagination

Paste the HTML where you need it and the CSS into a global stylesheet (or a <style> tag). Every class is prefixed nuda- so it never collides with Tailwind or your own styles. Tweak the CSS custom properties to match your design system.

Works in React, Vue, Svelte, Astro, Next.js, Nuxt, Laravel Blade, Django, Rails — or a single .html file. No npm install, no build step.

More pagination components

← Browse all NudaUI components