# Table Pagination Footer

> A data table footer with a rows-per-page select, a "11–20 of 97" range and previous/next buttons.

- Category: [CSS Navigation](https://copy-css.com/category/navigation)
- Tags: pagination, data table, rows per page, range, admin
- Live preview: https://copy-css.com/snippets/table-pagination
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="table-pager">
  <label>Rows
    <select>
      <option>10</option>
      <option>25</option>
      <option>50</option>
    </select>
  </label>
  <span>11–20 of 97</span>
  <nav aria-label="Pagination">
    <a href="#" aria-label="Previous page">‹</a>
    <a href="#" aria-label="Next page">›</a>
  </nav>
</div>
```

## CSS

```css
.table-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  box-sizing: border-box;
  padding: 10px 12px;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font: 13px system-ui, sans-serif;
}

.table-pager label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-pager select {
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
}

.table-pager nav {
  display: flex;
  gap: 4px;
}

.table-pager a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: #0f172a;
  font-size: 18px;
  text-decoration: none;
}

.table-pager a:hover {
  background: #f1f5f9;
}

.table-pager a:focus-visible,
.table-pager select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}
```

## Notes

- This CSS Table Pagination Footer is 54 lines of pure CSS (0.9 KB) with no JavaScript and no dependencies. It uses CSS Grid, Flexbox and keyboard focus styles.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
