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
  • 77,474
  • 47
  • 185
  • 261
iceteea
  • 1,214
  • 3
  • 20
  • 35

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
  • 77,474
  • 47
  • 185
  • 261
  • 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