epub 2 pdf widowed <h2> solution sought
It is my understanding that GTK does not honor widows because of "columns". I do not understand the ins and outs of the technicalities. I find <h2>heading</h2> at the bottom of pdf pages. When I designate break-inside: avoid this only treats the <h2> tag itself and, of course, does not break, but it is still at page bottom. If I wrap the <h2> pair and the following <p> tag with a <div> I can tell the <div> not to break and that works okay. But it is laborious to go through and do this manually for every <h2>. To avoid adding divs throughout the book I tried to 'group' with a combinator in a goofy way: <style>(h2+*) {page-break-inside: avoid}</style>. That does not work. I cannot see using :before, :after, :first-pudknocker, or anything else. To say it cutesy-wootsie, I am looking for a way to affect 'the antecedent of an adjacent sibling selector of a combinator'. Would appreciate input. Best regards, Pop
|