View Single Post
Old 06-04-2021, 09:49 AM   #1
rjwse@aol.com
Addict
rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.rjwse@aol.com ought to be getting tired of karma fortunes by now.
 
rjwse@aol.com's Avatar
 
Posts: 333
Karma: 2228060
Join Date: Dec 2013
Location: LaVernia, Texas
Device: kindle epub readers on android
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
Attached Thumbnails
Click image for larger version

Name:	widow2.png
Views:	189
Size:	672.6 KB
ID:	187478   Click image for larger version

Name:	widows3.png
Views:	181
Size:	439.9 KB
ID:	187479   Click image for larger version

Name:	widows4.png
Views:	212
Size:	684.7 KB
ID:	187480   Click image for larger version

Name:	widow1.png
Views:	188
Size:	469.5 KB
ID:	187481  
rjwse@aol.com is offline   Reply With Quote