Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
CSS

How to Repeat an HTML Table Footer on Every Printed Page

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Put the rows that must recur in a semantic <tfoot> inside the same table as the records. CSS maps <tfoot> to table-footer-group, which allows a print user agent to repeat those rows on every page occupied by the table. The standard says “may repeat,” not “must repeat,” so verify the result in the exact browser and PDF or printer workflow you support.

Use a real <tfoot> in the table

A footer placed outside the table, or a visually styled row in a separate element, is not the semantic table footer that paged media can repeat. Keep the header, records and recurring summary rows in one valid table:

<table class="invoice">
  <caption>March invoice</caption>
  <thead>
    <tr>
      <th scope="col">Item</th>
      <th scope="col">Quantity</th>
      <th scope="col">Amount</th>
    </tr>
  </thead>
  <tbody>
    <tr><td>Hosting</td><td>1</td><td>$40.00</td></tr>
    <tr><td>Support</td><td>2</td><td>$60.00</td></tr>
    <!-- enough rows to span more than one printed page -->
  </tbody>
  <tfoot>
    <tr>
      <th scope="row" colspan="2">Subtotal</th>
      <td>$100.00</td>
    </tr>
  </tfoot>
</table>

In current HTML, place <tfoot> after the caption, column groups, header, body and any direct table rows. Older examples sometimes put it before <tbody> because earlier HTML parsers permitted that order; use the current order for new documents.

What belongs in each section?

  • <thead> contains column headings. Browsers may repeat it at page breaks, but that behavior is separate from footer repetition.
  • <tbody> contains the records that can flow across pages. You can use more than one body section when the data has logical groups.
  • <tfoot> contains a subtotal, continuation note, signature line or other footer information that is meaningful when repeated.

Use header cells with scope="row" for a row label in the footer. That preserves useful relationships for assistive technology even when the same row is printed several times.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Amazon Basics Multipurpose Copy Printer Paper, 8.5 x 11 Inches, 20 lb, 92 Bright, White, 1 Ream (500 Sheets), Jam-Free
  • 1 ream (500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
  • Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
  • Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
  • Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
  • Virgin copy paper providing professional quality results; acid-free to prevent yellowing

Why repetition is not guaranteed

CSS 2.1 defines table-footer-group and states that print user agents may repeat footer rows on each page spanned by a table. “May” grants permission; it does not require identical behavior from every browser, native print driver or PDF-generation pipeline. MDN describes <tfoot> as semantic information useful for screen and print rendering and notes that a multipage printed footer commonly contains an intermediate summary.

Therefore, semantic markup is the correct implementation, but it is not a cross-browser guarantee. Test the browser version, operating system and output destination you actually ship. A browser’s print preview can differ from a headless PDF service, and a PDF viewer can paginate or scale the finished document differently from the browser that created it.

Print-specific CSS that supports the layout

Use print media rules for visual adjustments, not as a replacement for <tfoot>. The footer-group behavior is what makes the section eligible for repetition.

@media print {
  .invoice tfoot {
    font-weight: 700;
  }

  .invoice {
    width: 100%;
    border-collapse: collapse;
  }

  .invoice th,
  .invoice td {
    border: 1px solid #777;
    padding: 0.35rem;
  }
}

@page {
  margin: 1.5cm;
}

Keep author CSS from disabling the group

Do not apply display: block, display: flex or display: grid to the footer when you need table pagination. Such declarations replace the table-footer-group display type. A reset stylesheet can cause the same problem if it assigns a generic display value to every table section. Inspect the computed style in print emulation and make sure the footer retains table-footer-group behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
HP Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
  • HP Papers is sourced from renewable forest resources and has achieved production with 0% deforestation in North America. Each ream is wrapped in a polyurethane coated paper wrapper to protect the cut sheets from moisture damage
  • Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
  • HP Copy&Print20 20 pounds printer paper is Forest Stewardship Council (FSC) certified and contributes toward satisfying credit MR1 under LEED (Leadership in Energy and Environmental Design)
  • All HP Papers provide premium performance on HP equipment, as well as on all other printer and copier equipment; 100% satisfaction guaranteed; ColorLok technology provides more vivid colors, bolder blacks and faster drying
  • Superior quality, reliability, and dependability for high-volume printing at home, at school and in the office; HP Copy&Print20 print and copy paper prevents yellowing over time to ensure a long-lasting appearance for added archival quality

Control page dimensions and spacing

@page can set page size, orientation and margins, while @media print controls the document’s print presentation. These settings can reduce awkward breaks, but they cannot turn an unsupported print implementation into a repeating footer. Keep page margins large enough for the target printer’s non-printable area and check the browser’s own “headers and footers” setting separately from your table footer.

A complete example with a long body

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Printable invoice</title>
  <style>
    @media print {
      .invoice { width: 100%; border-collapse: collapse; }
      .invoice th, .invoice td {
        border: 1px solid #777;
        padding: 6px;
      }
      .invoice tfoot { font-weight: bold; }
    }
    @page { margin: 1.5cm; }
  </style>
</head>
<body>
  <table class="invoice">
    <caption>March invoice</caption>
    <thead>
      <tr><th scope="col">Description</th><th scope="col">Hours</th><th scope="col">Amount</th></tr>
    </thead>
    <tbody>
      <tr><td>Design review</td><td>4</td><td>$320.00</td></tr>
      <tr><td>Implementation</td><td>18</td><td>$1,440.00</td></tr>
      <!-- repeat ordinary records as needed -->
    </tbody>
    <tfoot>
      <tr><th scope="row" colspan="2">Subtotal</th><td>$1,760.00</td></tr>
    </tfoot>
  </table>
</body>
</html>

Open the file, choose Print, and inspect every page in preview. To exercise pagination, use enough records to exceed one page and include a footer row whose text is unmistakable. Then save to PDF and inspect the PDF itself; do not assume that a preview result represents every downstream PDF service.

When the footer appears only once

Check the table boundary

Confirm that <tfoot> is a child of the same <table> that contains the rows spanning pages. A footer below the closing </table> cannot repeat as part of that table.

Check the section structure

Use valid section elements and close every row and cell. Browser error recovery can move malformed nodes outside the table, making markup that looks correct in source behave differently in the DOM. Inspect the live DOM rather than relying only on the template.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
  • 3 ream case (1,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
  • Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
  • Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
  • Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
  • Virgin copy paper providing professional quality results; acid-free to prevent yellowing

Check computed display styles

Search your stylesheet and reset rules for declarations targeting tfoot, table sections or all elements. Remove overrides that change the footer’s display type. Also look for a script that clones, replaces or wraps the table before printing.

Check the actual output engine

CSS 2.1 permits repetition but does not promise it. Compare the browser’s print preview, its “Save to PDF” output and any server-side or headless PDF pipeline. If one path does not repeat the footer, document that limitation for users of that path rather than claiming universal support.

Check layout constraints

Very large row content, nested tables, transforms and unusual overflow rules can make pagination unpredictable. Remove transforms from the table for print, avoid placing the table in a fixed-height scrolling container, and let the table’s height grow naturally. Keep each footer row compact enough to fit within the printable area.

Design choices for useful repeated rows

  • Intermediate totals: A subtotal repeated on each page tells a reader what the visible portion represents. Label it clearly so it is not mistaken for a grand total.
  • Continuation text: A short note such as “continued” can help paper readers, but ensure it remains meaningful if repetition is not supported.
  • Grand totals: A final total that should appear only once may be better placed in a separate block after the table. Putting it in <tfoot> makes it eligible for repetition.
  • Accessibility: Keep text content in the cells, use proper header scopes and do not rely on background images or generated content for essential totals.

Verification checklist

  1. View the table in the browser and inspect the DOM: one table contains <thead>, <tbody> and <tfoot>.
  2. Use print preview with enough records to create at least two pages.
  3. Confirm the footer’s text and borders on every page where the table continues.
  4. Save a PDF using the supported browser path and inspect the PDF, not just the preview.
  5. Repeat the check in every browser, version and PDF service named in your support policy.
  6. Test narrow paper, landscape mode and large text if those are realistic user settings.

Or skip the browser setup

If your goal is to capture a web page reliably rather than build a print stylesheet, ScreenshotNeo provides a website screenshot API and MCP server. It accepts consent banners as a visitor and removes more than 60 known consent platforms, newsletter popups and chat widgets before capture; those steps can be turned off. Only clean shots are billed: bot checks or CAPTCHAs, blank pages, timeouts, failed loads and cache hits cost nothing, and each response identifies the result with X-Page-Verdict and X-Billed headers.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a screenshot, make one GET request. The API can return PNG, JPEG or WebP; it also supports PDF output and options such as full-page capture with lazy images loaded, CSS-selector element capture, dark mode, device presets, custom viewport and retina scale. You can set PDF paper size, margins, landscape mode and page ranges, or supply custom CSS and JavaScript, clicks, waits, blocked requests, headers, cookies, user agents, authorization, timezone, geolocation, transparent backgrounds, resizing, caching TTLs, signed image links, asynchronous webhooks and bulk capture of up to 100 URLs per call. An MCP server exposes take_screenshot, get_page_info and capture_pdf to Claude, Cursor and other MCP clients.

Rank #4
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
  • 5 ream case (2,500 sheets) of 8.5 x 11 white copier and printer paper for home or office use
  • Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
  • Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
  • Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
  • Virgin copy paper providing professional quality results; acid-free to prevent yellowing

cURL

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

Python

import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)

Node.js

const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);

See the ScreenshotNeo documentation for request parameters and response handling. The Free plan includes 1,000 screenshots per month with no card; paid plans start at $5 for 3,000 shots. Create a free ScreenshotNeo account to try it.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

FAQ

Can I repeat a footer with only CSS?

CSS controls presentation, but the repeatable structure comes from a table footer section. Use semantic <tfoot> markup first, then print CSS for appearance.

Should the footer come before the body?

Use the current HTML order: caption, column groups, header, body and then footer. Do not copy older examples that rely on legacy parser rules.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does repeating a footer create a new subtotal on each page?

No. It repeats the same footer row. If each page needs a calculated subtotal, generate those values in your data or document pipeline before rendering.

Best Value
Sale
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
  • 8 ream case (4,000 sheets) of 8.5 x 11 white copier and printer paper for home or office use
  • Multipurpose letter size copy paper works with laser/inkjet printers, copiers and fax machines
  • Smooth 20lb weight paper for consistent ink and toner distribution; dries quickly and resists paper jams
  • Bright white paper (92 GE; 104 Euro) offers great contrast for crisp printing and vivid color
  • Virgin copy paper providing professional quality results; acid-free to prevent yellowing

Frequently Asked Questions

Can I repeat a footer with only CSS?

CSS controls presentation, but the repeatable structure comes from a table footer section. Use semantic <tfoot> markup first, then print CSS for appearance.

Should the footer come before the body?

Use the current HTML order: caption, column groups, header, body and then footer. Do not copy older examples that rely on legacy parser rules.

Does repeating a footer create a new subtotal on each page?

No. It repeats the same footer row. If each page needs a calculated subtotal, generate those values in your data or document pipeline before rendering.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Amazon Basics Multipurpose Copy Printer Paper, 8.5 x 11 Inches, 20 lb, 92 Bright, White, 1 Ream (500 Sheets), Jam-Free
Amazon Basics Multipurpose Copy Printer Paper, 8.5 x 11 Inches, 20 lb, 92 Bright, White, 1 Ream (500 Sheets), Jam-Free
1 ream (500 sheets) of 8.5 x 11 white copier and printer paper for home or office use; Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$6.97
Bestseller No. 2
HP Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
HP Printer Paper | 8.5 x 11 Paper | Copy &Print 20 lb | 1 Ream Case - 500 Sheets| 92 Bright | FSC Certified | 200060
Sheet size – 8.5 x 11; Thickness – 20 pounds; Brightness – 92 bright white
$6.97
Bestseller No. 3
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 3 Reams (1,500 Sheets), 92 Bright White for Home Use
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$23.99
Bestseller No. 4
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 5 Reams (2,500 Sheets), 92 Bright White
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$34.85
SaleBestseller No. 5
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
Amazon Basics Multipurpose Copy Printer Paper, 20 lb, 8.5 x 11 Inches, 8 Reams (4,000 Sheets), 92 Bright White, Great for Crisp Ink Printing
Virgin copy paper providing professional quality results; acid-free to prevent yellowing
$49.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Read next

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.