Skip to content

Commit

Permalink
Future-proof use of pagebreak CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
selfthinker committed Apr 22, 2018
1 parent eb826bf commit c335120
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions print_or_pdf.less
Expand Up @@ -10,14 +10,16 @@ Styles shared between print.css and pdf.css
/*____________ pagebreak ____________*/

.wrap_pagebreak {
page-break-after: always;
break-after: page; /* CSS 3 */
page-break-after: always; /* CSS 2.1 */
}

/*____________ avoid page break ____________*/
/* not yet supported by most browsers */

.wrap_nopagebreak {
page-break-inside: avoid;
break-inside: avoid; /* CSS 3 */
page-break-inside: avoid; /* CSS 2.1 */
}

/*____________ no print ____________*/
Expand Down

0 comments on commit c335120

Please sign in to comment.