Title: Avoiding orphaned breaks
Last modified: June 15, 2025

---

# Avoiding orphaned breaks

 *  [Sea Jay](https://wordpress.org/support/users/jcollier/)
 * (@jcollier)
 * [11 months, 2 weeks ago](https://wordpress.org/support/topic/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:
 *     ```wp-block-code
       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/)
 * [https://staging.phippsburgcares.org/resources/food-assistance-programs/?pdf=468](https://staging.phippsburgcares.org/resources/food-assistance-programs/?pdf=468)
 * Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Plugin Author [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * (@dinamiko)
 * [11 months, 1 week ago](https://wordpress.org/support/topic/avoiding-orphaned-breaks/#post-18520073)
 * Hello [@jcollier](https://wordpress.org/support/users/jcollier/),
 * It could be because that CSS is not supported by mPDF, the PDF library used by
   the plugin, [here](https://mpdf.github.io/css-stylesheets/supported-css.html)
   you can check the supported CSS.

Viewing 1 replies (of 1 total)

The topic ‘Avoiding orphaned breaks’ is closed to new replies.

 * ![](https://ps.w.org/dk-pdf/assets/icon-256x256.png?rev=3396282)
 * [DK PDF - WordPress PDF Generator](https://wordpress.org/plugins/dk-pdf/)
 * [Support Threads](https://wordpress.org/support/plugin/dk-pdf/)
 * [Active Topics](https://wordpress.org/support/plugin/dk-pdf/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dk-pdf/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dk-pdf/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dinamiko](https://wordpress.org/support/users/dinamiko/)
 * Last activity: [11 months, 1 week ago](https://wordpress.org/support/topic/avoiding-orphaned-breaks/#post-18520073)
 * Status: not resolved