TIP: Table Headers at top of each printed page

liunx

Guest
I remember seeing posts which have asked how to have table headers displayed at the top of each Printed page. Well here's a solution:<br />
<thead style="display: table-header-group"><br />
<tr><br />
<td>Column1 Header</td><br />
<td>Column2 Header</td><br />
</tr><br />
</thead><br />
This is IE4+, NS6 compatible.<br />
<br />
<br />
Credit to PB at the topstyle newsgroup (news.bradsoft.com - topstyle.support.css)<!--content-->GREAT STUFF!<br />
<br />
I posted a question a week or two ago, on how to have headers on each page when printed/previewed. Answer I got was to use the media="print" type. In that case I had to insert page-breaks manually.<br />
<br />
This is just the right solution. No need to calculate page-breaks myself.<br />
<br />
Thanks!:D<!--content-->Considering the following note about tables:<br />
"Most important is, that the content of a table is not shown until the entire table is loaded. If you have extremely long pages, you should divide it into two or more tables - allowing the user to start reading the upper content while the rest of the page is loading."<br />
<br />
Is this absolutely true?<br />
<br />
If it is...is it somehow possible to keep the table header appear only on top of each printed page, even if I divide the table in... let's say tables of a maximun of 100 rows?<!--content-->
 
Back
Top