Created
September 28, 2011 13:55
-
-
Save stilliard/1247989 to your computer and use it in GitHub Desktop.
CSS "page-break-inside" jQuery fix when using pdfmyurl.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// applied to elements with class of "dont-break" | |
$('.dont-break').wrap('<table style="page-break-inside: avoid; width: 100%;" />'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
May try to expand in the future to auto wrap elements with "page-break-inside" property set, specifically for print / pdfmyurl only.