I saw this similar question.
(I highlighted the important bits to speed up the reading of the question)
To add to this, I would like to format the HTML table (with a large number of rows) so that when printing it repeats the table headers after each page break . In other words, so that the table headers appear at the top of each printed page.
Some of the things I tried were when generating HTML, counting the number of lines, and then the empty lines, where I expected a page break. . At this point, I would put the table headers again.
However, depending on which printer is used, the page breaks in different places . Since each printer has slightly different margin settings, font sizes, etc.
This, of course, discards the whole idea of ββpredicting where a page break will occur.
What strategies do other people use to print HTML tables and forms while maintaining the correct formatting?
any ideas?
html css printing
7wp
source share