Posted by Gιrard Talbot on 09/15/05 01:06
Larry a Γ©crit :
> I have a CGI program that generates a fairly long HTML table in
> response to a query. How do I make it so that the user can print the
> table from their browser and have the column headings show up on the
> top of each page? I know about the "page-break-after" style tag, but I
> have no way to know when to output it. Another option I've considered
> is something like Crystal Reports, but that's expensive, complex, and
> way more than what I need.
>
Use <thead> accordingly.
"When long tables are printed, the table head and foot information may
be repeated on each page that contains table data."
http://www.w3.org/TR/html401/struct/tables.html#h-11.2.3
http://www.w3.org/WAI/UA/TS/html401/cp1001/1001-THEAD-TBODY-TFOOT-OVERFLOW.html
GΓ©rard
--
remove blah to email me
[Back to original message]
|