Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1038449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:58:37+00:00 2026-05-16T14:58:37+00:00

I have seen this similar question. (I highlighted the important bits to make skim-reading

  • 0

I have seen this similar question.

(I highlighted the important bits to make skim-reading the question faster)

To add to it though, I would like to format an HTML table (with a lot of rows) in such a way that when printed, it would repeat the table headers after each page break. Another words, for the table headers to be visible at the top of each printed page.

Some things I have tried was, when generating the HTML, counting the number of rows, then putting blank rows where I was expecting a page break to occur. At this point I would put in the table headers again.

However, depending on what printer is used, the page breaks end up in different spots. Because each printer seems to have slightly different margin settings, font sizes, etc…

This of course, throws off this whole idea of predicting where a page break will occur.

What strategies do other people use to print HTML tables/forms while maintaining proper formatting?

any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:58:37+00:00Added an answer on May 16, 2026 at 2:58 pm

    Per your own link, posted David Thomas answers it:

    On a tangent, it might be worth adding a to your table with the following css thead {display: table-header-group; } so as to print the table-header on all subsequent pages (useful for loooooong data tables). – David Thomas Nov 19 ’09 at 14:38

    Whats wrong with that solution? Does it not fit the bill?

    About table-header-group:

    table-header-group (In HTML: THEAD)

    Like ‘table-row-group’, but for visual formatting, the row group is always displayed before all other rows and row groups and after any top captions. Print user agents may repeat header rows on each page spanned by a table. If a table contains multiple elements with ‘display: table-header-group’, only the first is rendered as a header; the others are treated as if they had ‘display: table-row-group’.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have seen this similar question on SO in a few places but all
I have seen several posts similar to this but none with a strait forward
I have seen this question and its answers and they clear up some of
I have seen this question that talks about getting the last part of a
I have seen this question about deploying to WebSphere using the WAS ant tasks.
I have seen a similar question on Android but my question targets iOS. My
I have seen a similar question, HERE and have tried that, but I can't
I have seen similar threads on this QnA, but my specific scenario is as
I have seen a similar question but the answers did not work on my
I have seen a similar question asked here Jquery how to validate domain name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.