How do I add a boilerplate header and footer to every page of a printed HTML document?
===

I'm writing a script to automatically transform plain text test documents into HTML tables with proper column width, step numbering, etc.  Each page will have some part of a big, long table in it. I also need to have a header and footer on each page to comply with FDA regulations in this area- it has simple information about copyright, page number, part numbers, etc. 

I have noticed some of the prescribed CSS/HTML tools for this task don't seem to work.

1)The `@page` rule with margins and the ability to put content into those margins would solve this problem pretty neatly, but I don't think it was ever implemented.

2)Many of the suggested answers to this question on SO http://stackoverflow.com/questions/5492677/how-to-add-a-header-and-footer-to-each-printed-page-of-a-web-document-without-b http://stackoverflow.com/questions/1722437/is-there-a-way-to-get-a-web-page-header-footer-printed-on-every-page end up with some combination of:  The footer/header render on top of text, or somehow break the `page-break-inside` rendering of the body so half of a line renders on each page.

Is it still (given the answers and my attempts to use them) impossible to do this in a clean way?  Or at all?  I don't mind what browser I have to use to print them correctly either.