Permalink
Browse files

Future-proof use of pagebreak CSS

  • Loading branch information...
selfthinker committed Apr 22, 2018
1 parent eb826bf commit c33512025e83ce0439121a797d70f7428660e53a
Showing with 4 additions and 2 deletions.
  1. +4 −2 print_or_pdf.less
View
@@ -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 ____________*/

0 comments on commit c335120

Please sign in to comment.