Quote:
Originally Posted by scruffs
So Ive attached the CSS as well. If you wouldn't mind taking a squint at it, I'd be very grateful.
|
I tried your "temp-css 2" style sheet with your previously posted "Test 01" EPUB file and was able to duplicate the ignoring of "page-break-after: avoid" using the Kindle Previewer.
With a bit of trial and error I was able to fix the problem by eliminating the property "background-color: #FFF" from the style sheet.
Looking at the proprietary Amazon ION code produced by the Kindle Previewer I was able to determine that the presence of this property causes the Kindle Previewer to insert a new block level element at the highest level of the document. That prevents the page-break handling from being effective since the KFX renderer only honors it when it is used in conjunction with a top level element.
The Enhanced Typesetting (KFX) conversion process definitely has some quirks!