Printer friendly tabular data across pages for tables with CSS

Code Title: Printer friendly tabular data across pages for tables with CSS
Language: CSS
Version: 1.0

Description:

If your using columns that are big in width, you can do number of things to make it printer friendly and usability of long tables. If your using thead for the headers, and tr for the rows, the solution is in the code section.

This will repeat your table headers to every page that will be printed over the rows similar to how it works in Microsoft Excel. You should verify the browser support for above code to work. It works in IE6+ (tested).

Added: 01/08/2009
Profile: Syed
User Name: syed

Recent Entries by Author:
Coming Soon!

Note: Please, always give credit to author for his/her work, if used in production environment.

Code

thead {display: table-header-group;}
tr {page-break-inside: avoid;}