1

I have a site with some tables on it (with thead & tbody). This site shall be printed with the latest firefox. Problem: sometimes firefox breaks the page within one of the tables, the printed version of the site is unusable. Couldn't find any working solution yet.

Starx
  • 75,098
  • 44
  • 181
  • 258
iceteea
  • 1,184
  • 3
  • 19
  • 34

1 Answers1

2

This shall fix the problem

table { 
   page-break-before: always;
} 

Update::

On that case, use the folloing

@media print {
    table {
       page-break-inside:avoid;
    }
}
Starx
  • 75,098
  • 44
  • 181
  • 258
  • Thanks, but with this i've a new page for each table, where there could be 3-4 tables on one page. – iceteea Apr 17 '12 at 06:31
  • @iceteea, Actually check [this](http://stackoverflow.com/a/6996436/295264) answer. Opera supports page-break-inside more than others does – Starx Apr 17 '12 at 07:31