Make Printing Of One Table Per Page With Css

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.

No Comments

Add a Comment
Comments are closed