Skip to content

Instantly share code, notes, and snippets.

@stilliard
Created September 28, 2011 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stilliard/1247989 to your computer and use it in GitHub Desktop.
Save stilliard/1247989 to your computer and use it in GitHub Desktop.
CSS "page-break-inside" jQuery fix when using pdfmyurl.com
// applied to elements with class of "dont-break"
$('.dont-break').wrap('<table style="page-break-inside: avoid; width: 100%;" />');
@stilliard
Copy link
Author

May try to expand in the future to auto wrap elements with "page-break-inside" property set, specifically for print / pdfmyurl only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment