![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
|
Unwated Page Breaks
Hello,
I've seen other threads discussing page breaks, but none of them seemed to directly address my problem. I've converted from .docx to epub using Calibre. My book has a lot of images in it, and I want some of them to occupy their own entire page, separate from the text. I've done this by inserting a "page break" in Word after the relevant images. However, this creates an entire unwanted blank page between the image and the text. (Before I put these page breaks in, the text was right up against the image on the same page.) I can't figure out what the CSS coding is for this so that I can fix it in the editor. Any pointers? Thanks! |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,696
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
How is the text following the 'single-page' image styled in Word. Try defining and using a style that has Page break before set in the Paragraph options?
BR |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
page-break-before, page-break-after |
|
![]() |
![]() |
![]() |
#4 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
When the image fills the page (height: 100%; width: 100%; or width: auto; ), you don't need the page-break codes, so delete those codes. Also, make sure the CSS codes for the image (the class code listed above the .jpg code) has 0 for all four margins, and make sure there are no codes above or below the image where you've used to add spacing.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Apr 2018
Device: none
|
Hey guys, thanks for the tips. I tried them all and they didn't work. Also, I noticed that there was no code for "page-break-before" or "page-break-after". The page is being broken by the presence of separate index_split files, nothing else.
I had the width and height settings of the pictures set to "auto." I noticed that when I set width and height to something arbitrary and tiny, like 100px by 100px, the unwanted blank pages disappeared. Is it possible that the "auto" setting is creating the unwanted blank pages by sizing the picture too big? So far, I've only checked this in the ebook viewer that comes with Calibre. Any idea if this will be a problem on an actual ebook reader? Thanks! |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,003
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I tend to us splits AS new chapters, where I want a break. The only other time, is a forced-to-split case, to stay under 260K for older ADE based devices. I like splits.I believe the performance improves with small chunks |
|
![]() |
![]() |
![]() |
#7 |
Book E d i t o r
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Another thing is:
Remove any height or width lines in the .css file for the class that is listed above the <img> lines. This will also cause blank pages after the image. The height and width lines must be in the CSS for the class inside the <img> lines. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with assigning correct page breaks and page numbers to a textbook [converting fr | cateroseg | Calibre | 0 | 02-14-2018 10:32 PM |
Page Breaks etc | genfind | General Discussions | 6 | 02-24-2012 02:20 PM |
epub to mobi h1 page breaks not starting on new page | wannabee | Conversion | 4 | 08-02-2011 12:46 AM |
Adding page breaks in Calibre breaks ePubcheck validation | bookraft | Conversion | 16 | 03-01-2011 01:23 PM |
Page breaks | enarchay | Calibre | 18 | 05-31-2009 06:57 PM |