Posted by Larry on 09/15/05 05:11
Dima Gofman wrote:
> > Larry wrote:
> >
> >> 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.
> >>
>
> Simple! In FireFox it's enough to simply use <thead> and <th> tags and
> to get the same effect in IE all you need is a bit of CSS. Like so:
>
> <html><head><title></title>
> <style type='text/css'>
> thead{display:table-header-group}
> </style>
> </head><body>
....
Thanks! I'll try that!
[Back to original message]
|