View Single Post
Old 02-03-2017, 09:05 PM   #1
SigilBear
Banned
SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.SigilBear ought to be getting tired of karma fortunes by now.
 
Posts: 244
Karma: 2112680
Join Date: Jan 2017
Device: iBooks
Widowed (Orphaned?) Header

I'm working on an epub in Sigil. I have a chapter that has brief information for each of the 50 states. Each section begins with a state's name in a h4 tag.

When I preview my book, I sometimes see a header resting on the bottom of a page, with the following paragraph on the next page.

I tried wrapping the header and following paragraph in a div, like this...

<div class="Widow">
<h4 class="State" id="me">Maine</h4>
<p>This is a paragraph.</p>
</div>
Then applying this style:

div.Widow { widows: 3; }

I also changed widows: 3 to orphans: 3, just to make sure I didn't have it backwards. But it doesn't work.

Can anyone suggest another strategy for gluing a paragraph to a header, so the header doesn't wind up all alone on the preceding page?

Thanks.
SigilBear is offline   Reply With Quote