Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Don't Repeat TFOOT When Printing

Tags:

html

css

firefox

A table that extends onto multiple printed pages will have its thead and tfoot sections reprinted in firefox. This is usually great, however, is there a way to turn off this behavior with CSS?

[UPDATE] Thanks for the response so far. I would like to have the tfoot print once at the bottom of the table but not at the end of each page. Thanks again.

like image 815
Brian Fisher Avatar asked Jan 23 '09 23:01

Brian Fisher


2 Answers

I found another way to do this:

<tfoot style="display: table-row-group">
</tfoot>

This works for Firefox, but of course, the display property is notoriously not cross-browser compatible.

like image 118
user180750 Avatar answered Sep 22 '22 11:09

user180750


The easy solution: don't use tfoot. Put the footer row(s) at the end of tbody. Now they'll print at the end of the table and no where else.

like image 32
Shog9 Avatar answered Sep 25 '22 11:09

Shog9