View Single Post
Old 11-13-2019, 04:18 PM   #27
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,852
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Tex2002ans View Post
Hacking a <h#> like that would be extremely poor practice.
Yes, but when you are in need...

Quote:
So according to what is being said, code such as this still won't stick together?

Code:
<div class="poem">
<p class="poetry">This is a poem.</p>
<p class="poetry">This is a poem.</p>
<p class="poetry">And this is a poem.</p>
</div>
CSS:

Code:
div.poem {
     page-break-inside: avoid;
}
It will be together if you use:

Code:
div.poem {
     float: left;
     width: 100%;
     page-break-inside: avoid;
}
Quote:
Hmmm... now that widows/orphans are defaulted to 2, would overriding them in the CSS via:

Code:
p {
  orphans: 1;
  widows: 1;
}
work?
With the last version for Kindle for Android, yes.
RbnJrg is offline   Reply With Quote