Contents tagged 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-inside: avoid;

        }

    </style>

    That was only one css that worked for me.

    more