Loading ...

Make Printing Of One Table Per Page With Css

Hello erybody,

today I want to share one important note, which took significant amount of time from me to finish.

I had page which as html output few tables. For me it was nessesary to make one page per table. In order to achieve it I've found following CSS:

<style>
    table,
    table tr td,
    table tr th {
        page-break-insideavoid;
    }
</style>

That was only one css that worked for me.

Be the first to rate this post

  • Currently 0.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5