Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to print tables?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28853
    Oskar
    Participant

    Say you have a table containing rows enough to span two A4 pages. When I print in FF/Mac 3.6, IE7 & IE8 page two just comes out blank, the first page cutting the table off when there isn’t more space.

    The specification says it can not break when using:

    Code:
    table { page-break-inside: avoid; }

    But only Opera supports this feature. What to do?

    #235573
    RioBrewster
    Participant

    5 years later and I still have the same problem.

    I tried:

    table, tr, td, th { page-break-inside: avoid; }
    

    I even tried:

    .noBreak{
    display: block;
    page-break-inside: avoid;
    }
    

    and

    <tr>
    <th><div class="noBreak">...</div></th>
    <td><div class="noBreak">...</div></td>
    </tr>
    

    That didn’t work. I tried wrapping every tr in a tbody tag.
    That didn’t work and it broke the zebra stripe.

    Surely someone has solved this problem somewhere…

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.