Avoiding orphaned breaks
-
Love the plugin!
We are looking to keep headings with the following paragraphs and avoiding column breaks within the paragraphs.
We have a /dkpdf/ folder and a dkpdf-index.php file in our child theme and have been adding CSS at line 23. However the following CSS isn’t accomplishing our goal:
h2, h3 {
-webkit-break-after: avoid;
break-after: avoid;
}
p {
display:inline-block;
-webkit-column-break-inside: avoid-column;
-moz-column-break-inside: avoid-column;
break-inside: avoid-column;
white-space: nowrap;
}It seems that the generator isn’t interpreting those stypes. Is there something else we should do to remove the breaks?
Sample page and DK PDF (password: pcares):
https://staging.phippsburgcares.org/resources/food-assistance-programs/
https://staging.phippsburgcares.org/resources/food-assistance-programs/?pdf=468
Thanks in advance!
The topic ‘Avoiding orphaned breaks’ is closed to new replies.