Skip to content

Instantly share code, notes, and snippets.

@deanbot
Created August 17, 2019 20:40
Show Gist options
  • Save deanbot/1bd1603b628a1825de6096507fc983cd to your computer and use it in GitHub Desktop.
Save deanbot/1bd1603b628a1825de6096507fc983cd to your computer and use it in GitHub Desktop.
<style type="text/css" media="screen,print">
/* Page Breaks */
/***Always insert a page break before the element***/
.pb_before {
page-break-before: always !important;
}
/***Always insert a page break after the element***/
.pb_after {
page-break-after: always !important;
}
/***Avoid page break before the element (if possible)***/
.pb_before_avoid {
page-break-before: avoid !important;
}
/***Avoid page break after the element (if possible)***/
.pb_after_avoid {
page-break-after: avoid !important;
}
/* Avoid page break inside the element (if possible) */
.pbi_avoid {
page-break-inside: avoid !important;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment