Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2019, 05:00 PM   #16
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
I have not seen this and am curious to know more about it.
Well, there is not much to say; with Kindle Previewer 3.35 the property page-break-after: avoid and page-break-before: avoid is availaible. If you use the Kindle app for android you'll need the last version. And I tested .KFX ebooks made with the last version of your plugin and the properties are being perfectly supported. Very usefull for captions and to avoid lone <h*> tags at the end of a page.

EDIT: However it seems to have a restriction: you can't have two consecutive tags (i.e. <h3> followed by <h4>) with those properties.

Last edited by RbnJrg; 11-12-2019 at 05:51 PM.
RbnJrg is offline   Reply With Quote
Old 11-12-2019, 08:56 PM   #17
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,494
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by RbnJrg View Post
Well, there is not much to say; with Kindle Previewer 3.35 the property page-break-after: avoid and page-break-before: avoid is availaible.
If you have an example that behaves differently when the page-break CSS is included or omitted I would like to see it. In my testing there has been no difference in the KFX output produced whether or not those properties are used.
jhowell is offline   Reply With Quote
Advert
Old 11-13-2019, 07:18 AM   #18
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
If you have an example that behaves differently when the page-break CSS is included or omitted I would like to see it. In my testing there has been no difference in the KFX output produced whether or not those properties are used.
Now <h*> tags are employing BY DEFAULT the properties "page-break-after: avoid" and "page-break-inside: avoid". You won't be able to see any <h*> tags lonely at the end of a page inside a .KFX book made with KP 3.35. Even <h*> tags with multiple lines (with or without <br/> present) will be displayed together in the following page. That didn't happen before.
RbnJrg is offline   Reply With Quote
Old 11-13-2019, 09:18 AM   #19
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,494
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by RbnJrg View Post
Now <h*> tags are employing BY DEFAULT the properties "page-break-after: avoid" and "page-break-inside: avoid". You won't be able to see any <h*> tags lonely at the end of a page inside a .KFX book made with KP 3.35. Even <h*> tags with multiple lines (with or without <br/> present) will be displayed together in the following page. That didn't happen before.
That matches the behavior I have observed. It is a change in the rendering of heading elements, rather than actual support for page-break-after:avoid. Publishers have no control over this and it cannot be used to avoid page breaks in general.

Added: Actually, there does appear to be a way that publishers can have a little control over this. In my testing setting widows/orphans on a heading disables the behavior of preventing a page break between it and the following text. I don't know if Amazon intended for this to happen, since none of this is documented.

Last edited by jhowell; 11-13-2019 at 09:51 AM. Reason: Add more info
jhowell is offline   Reply With Quote
Old 11-13-2019, 10:57 AM   #20
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,459
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by jhowell View Post
That matches the behavior I have observed. It is a change in the rendering of heading elements, rather than actual support for page-break-after:avoid. Publishers have no control over this and it cannot be used to avoid page breaks in general.

Added: Actually, there does appear to be a way that publishers can have a little control over this. In my testing setting widows/orphans on a heading disables the behavior of preventing a page break between it and the following text. I don't know if Amazon intended for this to happen, since none of this is documented.
You mean if you actually set the CSS on w/o, for a heading, it disables it, instead of enabling it? (Am I confused?)

Speaking of, I'm reading a Holmesian Pastiche that was published some years back and I know the formatter for Titan Books, so I know for a fact it wasn't KFX; it was a MOBI / ePUB file, and this thing with the goddamned W/O is starting to make my teeth grind on almost EVERY DAMNED PAGE.

Hitch
Hitch is offline   Reply With Quote
Advert
Old 11-13-2019, 11:35 AM   #21
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
That matches the behavior I have observed. It is a change in the rendering of heading elements, rather than actual support for page-break-after:avoid. Publishers have no control over this and it cannot be used to avoid page breaks in general.

Added: Actually, there does appear to be a way that publishers can have a little control over this. In my testing setting widows/orphans on a heading disables the behavior of preventing a page break between it and the following text. I don't know if Amazon intended for this to happen, since none of this is documented.
You can control it and you can use it. Now you know that all <h*> tags have the properties page-break-after: avoid and page-break-inside: avoid. Then in theory you could, for example, use:

Code:
<h6><img class="whatever" alt="" src=".../Images/YourImage.jpg" /><br/><span class="caption">This is a caption</span></h6>
to have the caption stuck with the image.

I'm doing further test to know the scope of what can be done. So far, even in epub3, the property "page-break-inside: avoid" is unsupported, but with the new KP, <h*> tags with multiple lines are showed together. So maybe we can use something like:

Code:
<h6 class="poetry">Blah, blah, blah,<br/>
blah, blah, blah,<br/>
Blah, blah, blah,<br/>
Blah, blah, blah.</h6>
for paragraphs that we want to have together.

And indeed, nothing of that is documented and I think Amazon will polish all this stuff in next versions of KP.
RbnJrg is offline   Reply With Quote
Old 11-13-2019, 11:43 AM   #22
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
You mean if you actually set the CSS on w/o, for a heading, it disables it, instead of enabling it? (Am I confused?)
That's right! All <h*> tags come by default with the properties "page-break-after: avoid" and "page-break-inside: avoid". So if you don't like them, then you need to set in the css stylesheet something like:

Code:
h1, h2, h3, h4, h5, h6 {
  orphans: 1;
  widows: 1;
}
But the good news is that you can use now <h*> tags for things you want to be together (not very academic but possible ). Of course, you'll have write more code yet for kf7.
RbnJrg is offline   Reply With Quote
Old 11-13-2019, 12:44 PM   #23
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,297
Karma: 12126329
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by RbnJrg View Post
All <h*> tags come by default with the properties "page-break-after: avoid" and "page-break-inside: avoid".

[...]

But the good news is that you can use now <h*> tags for things you want to be together (not very academic but possible ).
Hacking a <h#> like that would be extremely poor practice.

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;
}
(And I assume still zero support from Amazon for the CSS3 break-inside [latest specs recently deprecated+renamed the page-break-XXXX properties].)

Quote:
Originally Posted by RbnJrg View Post
So if you don't like them, then you need to set in the css stylesheet something like:

Code:
h1, h2, h3, h4, h5, h6 {
  orphans: 1;
  widows: 1;
}
Hmmm... now that widows/orphans are defaulted to 2, would overriding them in the CSS via:

Code:
p {
  orphans: 1;
  widows: 1;
}
work?

(This has been something that has been frustrating me in my Kobo Forma EPUB renderer. I was complaining to JSWolf about it a few months back. KEPUBs render with default 1 widows/orphans, but EPUB renderer idiotically defaults 2.)

Last edited by Tex2002ans; 11-13-2019 at 12:47 PM.
Tex2002ans is offline   Reply With Quote
Old 11-13-2019, 01:56 PM   #24
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,494
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by Hitch View Post
You mean if you actually set the CSS on w/o, for a heading, it disables it, instead of enabling it? (Am I confused?)
What I mean is that the latest KFX renderer seems to treat headings as if they have page-break-inside:avoid and page-break-after:avoid set.

If you try to change that behavior by setting page-break-inside:auto or page-break-after:auto, nothing changes. In fact those property settings will be stripped out during conversion to KFX.

The only way I have found to disable this handling is setting widows:1 and orhpans:1 on the heading. That seems to disable the default handling.

(I hope that was clearer.)

Quote:
Originally Posted by Hitch View Post
Speaking of, I'm reading a Holmesian Pastiche that was published some years back and I know the formatter for Titan Books, so I know for a fact it wasn't KFX; it was a MOBI / ePUB file, and this thing with the goddamned W/O is starting to make my teeth grind on almost EVERY DAMNED PAGE.
Are you reading on an e-ink Kindle device using the latest (5.12.2) firmware? That firmware is broken in that it always avoids widows and orphans even if the book is coded to allow them.

The iOS, Android, and Fire apps honor the coding of the widows/orphans properties, so I expect that the next e-ink Kindle firmware release will fix this.

I think Amazon made a poor choice in changing Enhanced Typesetting to avoid widows and orphans by default. I suspect that some publishers will be updating their books to add widows:1 and orphans:1 for regular paragraphs to work around this change.

-----

Related to this topic, the page-break-inside:avoid property is usually stripped out during conversion to KFX. However I have found that it is usually carried through and functions as expected if it is used in conjunction with float. If you open the attached EPUB with the latest Kindle Previewer and try different font sizes you will see that it does not want to split up the text in red.
Attached Files
File Type: epub float with page-break-inside avoid..epub (2.3 KB, 329 views)
jhowell is offline   Reply With Quote
Old 11-13-2019, 02:32 PM   #25
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,459
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by jhowell View Post
What I mean is that the latest KFX renderer seems to treat headings as if they have page-break-inside:avoid and page-break-after:avoid set.

If you try to change that behavior by setting page-break-inside:auto or page-break-after:auto, nothing changes. In fact those property settings will be stripped out during conversion to KFX.

The only way I have found to disable this handling is setting widows:1 and orhpans:1 on the heading. That seems to disable the default handling.

(I hope that was clearer.)
Yes, much, many thanks.

Quote:
Are you reading on an e-ink Kindle device using the latest (5.12.2) firmware? That firmware is broken in that it always avoids widows and orphans even if the book is coded to allow them.
To quote Popeye, I yam, I yam indeed. It's driving me bats**t.

Quote:
The iOS, Android, and Fire apps honor the coding of the widows/orphans properties, so I expect that the next e-ink Kindle firmware release will fix this.
Your lips, God's ears, all that.

Quote:
I think Amazon made a poor choice in changing Enhanced Typesetting to avoid widows and orphans by default. I suspect that some publishers will be updating their books to add widows:1 and orphans:1 for regular paragraphs to work around this change.


-----

Quote:
Related to this topic, the page-break-inside:avoid property is usually stripped out during conversion to KFX. However I have found that it is usually carried through and functions as expected if it is used in conjunction with float. If you open the attached EPUB with the latest Kindle Previewer and try different font sizes you will see that it does not want to split up the text in red.
Hmmmm....I'll go play with that.

Thx,
Hitch
Hitch is offline   Reply With Quote
Old 11-13-2019, 04:12 PM   #26
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
However I have found that it is usually carried through and functions as expected if it is used in conjunction with float.
Great discovery!
RbnJrg is offline   Reply With Quote
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,539
Karma: 6613969
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
Old 11-13-2019, 07:52 PM   #28
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,494
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Quote:
Originally Posted by RbnJrg View Post
It will be together if you use:

Code:
div.poem {
     float: left;
     width: 100%;
     page-break-inside: avoid;
}
I don't think that will work. In my testing the page-break-avoid seems to only be effective if used with a relatively small width. The details of this are mysterious.
jhowell is offline   Reply With Quote
Old 11-13-2019, 08:03 PM   #29
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 73,840
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Tex2002ans View Post
Hacking a <h#> like that would be extremely poor practice.

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;
}
(And I assume still zero support from Amazon for the CSS3 break-inside [latest specs recently deprecated+renamed the page-break-XXXX properties].)



Hmmm... now that widows/orphans are defaulted to 2, would overriding them in the CSS via:

Code:
p {
  orphans: 1;
  widows: 1;
}
work?

(This has been something that has been frustrating me in my Kobo Forma EPUB renderer. I was complaining to JSWolf about it a few months back. KEPUBs render with default 1 widows/orphans, but EPUB renderer idiotically defaults 2.)
In an ePub, I modify the body to...

Code:
body {
  widows: 1;
  orphans: 1;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  text-align: justify;
}
Will this work in KFX?
JSWolf is online now   Reply With Quote
Old 11-13-2019, 09:19 PM   #30
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,539
Karma: 6613969
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by jhowell View Post
I don't think that will work. In my testing the page-break-avoid seems to only be effective if used with a relatively small width. The details of this are mysterious.
I did the test and worked! Moreover, I wanted to find a way to avoid a break in the following case:

Code:
<h2>My Title</h2>

<h3>My Subtitle</h3>

<p>Some text here ... </p>
After <h3>, a break could be produced (I don't know why, but page-break-after: avoid doesn't work with two <h*> tags consequtive. But with:

Code:
<h2>My Title</h2>

<div class="joint">
   <h3>My Subtitle</h3>

   <p>Some text here ... </p>
</div>
with

Code:
.joint {
   float: left;
   width: 100%;
   page-break-inside: avoid;
}
all remains together! Do the try!
RbnJrg is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Widows and Orphans Calenorn Kobo Reader 3 10-21-2019 10:52 AM
Content Widows and Orphans on Kindle cc_in_oh Amazon Kindle 3 08-11-2016 11:38 AM
Pagebreak, widows and orphans UncleIvor ePub 17 09-11-2015 11:12 AM
Touch Widows and Orphans and firmware, oh my! MacEachaidh Kobo Reader 5 05-02-2013 11:14 AM
Widows and Orphans danrodney ePub 10 12-08-2010 02:08 PM


All times are GMT -4. The time now is 07:21 AM.


MobileRead.com is a privately owned, operated and funded community.