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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 11-19-2018, 06:08 PM   #1
Trane
Zealot
Trane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensions
 
Posts: 145
Karma: 51147
Join Date: Dec 2016
Device: android tablet
Can this 'tag' go in a CSS?

Hi... have a very long book (over 3k pages in KP) and noticed many of the sub-chapter headings are orphaned with blank space and the text starting on the next page (usually when an image that accompanies the text is too large to be put on the previous page).

I don't want to create a sep HTML file for each sub-heading, so was going to use this:

<div style="page-break-before:always;"></div>

... to keep the heading with the text... But was wondering if it can be placed in the CSS somehow so I don't have to manually paste it into several dozen places in the book code? TIA

EDIT: Uh, I think I found the answer here. Sorry for the post but hope it helps someone else.

Last edited by Trane; 11-19-2018 at 06:19 PM. Reason: found answer, I think...
Trane is offline   Reply With Quote
Old 11-20-2018, 12:44 AM   #2
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: 7,108
Karma: 63607829
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by Trane View Post
Hi... have a very long book (over 3k pages in KP) and noticed many of the sub-chapter headings are orphaned with blank space and the text starting on the next page (usually when an image that accompanies the text is too large to be put on the previous page).

I don't want to create a sep HTML file for each sub-heading, so was going to use this:

<div style="page-break-before:always;"></div>

... to keep the heading with the text... But was wondering if it can be placed in the CSS somehow so I don't have to manually paste it into several dozen places in the book code? TIA

EDIT: Uh, I think I found the answer here. Sorry for the post but hope it helps someone else.
With all due respect, I'm familiar with the problem--and big hunks of white space, on the original page, at the bottom, aren't any better than the heading languishing on one page with the text on the next. You're simply trading it off. Those of us that read eBooks really don't care about "orphaned" headings, (not really orphaned, but, as a descriptor) FWIW.

Hitch
Hitch is offline   Reply With Quote
Old 11-20-2018, 08:43 PM   #3
Trane
Zealot
Trane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensionsTrane can understand the language of future parallel dimensions
 
Posts: 145
Karma: 51147
Join Date: Dec 2016
Device: android tablet
Yeah I had that concern too... (i.e. which would be worse)... figured it's not too big of an issue to readers, and no way to fix it that's satisfactory for all devices. Don't know why the conversion to Kindle creates those spaces when there's no reason (it seems) in some cases. In others I know it's due to a picture that follows that's too large to put in the previous page's white space. I might put some manual breaks in a few choice places to keep the heading with the picture and let the rest go. Thanks for the input.
Trane is offline   Reply With Quote
Old 11-20-2018, 09:50 PM   #4
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: 7,108
Karma: 63607829
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, and NookColor. 2 Droid, 1 Win8 ePUB rdrs
Quote:
Originally Posted by Trane View Post
Yeah I had that concern too... (i.e. which would be worse)... figured it's not too big of an issue to readers, and no way to fix it that's satisfactory for all devices. Don't know why the conversion to Kindle creates those spaces when there's no reason (it seems) in some cases. In others I know it's due to a picture that follows that's too large to put in the previous page's white space. I might put some manual breaks in a few choice places to keep the heading with the picture and let the rest go. Thanks for the input.
It has to do with the coding. You need to look into the margins (top/bottom), the div they're in, if they are, etc. In ebooks, like websites, one command almost always is not the culprit; it's a series of them (the cascading part).

Hitch
Hitch 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
Wondering if there is a way to remove end tag with beginning tag LadyKate Editor 5 06-29-2016 05:32 PM
suggestion: tag groups should use Calibre tag hierarchy comox Calibre Companion 53 05-25-2015 08:22 PM
How to change the font-size in the body tag in css? naisren Conversion 2 10-01-2012 06:52 PM
KF8 max-width HTML CSS tag broken? ekovv Kindle Formats 5 09-05-2012 05:57 AM
Suggestion: Don't set "color" tag in .epub css McAlsop Calibre 16 06-17-2010 10:13 AM


All times are GMT -4. The time now is 06:42 AM.


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