MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Calibre (https://www.mobileread.com/forums/forumdisplay.php?f=166)
-   -   epub - unwanted page break after image (https://www.mobileread.com/forums/showthread.php?t=50603)

mrmikel 07-10-2009 07:07 AM

epub - unwanted page break after image
 
The HTML source I am using has an image at the top of each chapter start page. The first time the image is encountered, the image is followed by the text. At the start of chapter 1 the very same HTML is encountered and it throws in a page break after the image:
<body
style="background-image: url(../img/bg-usn.gif); direction: ltr;">
<center>
<img src="img/PT.jpg"></center>
<center>
<h2>Part I<br>

Any suggestions?

Jellby 07-10-2009 07:11 AM

Don't use <center>, use CSS text-align instead.

mrmikel 07-10-2009 07:49 AM

use css
 
Thanks for the suggestion, but no go. No luck putting the image in a div either.

llasram 07-10-2009 08:10 AM

Quote:

Originally Posted by mrmikel (Post 517364)
Any suggestions?

Disable chapter detection. I'm pretty sure what's happening is calibre is detecting your header tag with "Part" in it as a chapter break and inserting a page break prior to it.

mtravellerh 07-10-2009 08:19 AM

Quote:

Originally Posted by llasram (Post 517399)
Disable chapter detection. I'm pretty sure what's happening is calibre is detecting your header tag with "Part" in it as a chapter break and inserting a page break prior to it.

I think you're absolutely right, llasram!. In fact, removing the "Part" part (;)) from your X-Path-expression should be enough to prevent the pagebreak if you need the chapter detection otherwise..

mrmikel 07-10-2009 08:35 AM

Many thanks
 
Eliminating part from the X-path got rid of the page break. The text is from a series of HTML pages on the web, so navigation is built in anyway.

This gets rid of a road block so I just need to improve links to and from footnotes and then it will be ready to post.

Again, many thanks,

Mike


All times are GMT -4. The time now is 06:01 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.