07-10-2009, 07:07 AM | #1 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
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? |
07-10-2009, 07:11 AM | #2 |
frumious Bandersnatch
Posts: 7,539
Karma: 19001081
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
Don't use <center>, use CSS text-align instead.
|
Advert | |
|
07-10-2009, 07:49 AM | #3 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
use css
Thanks for the suggestion, but no go. No luck putting the image in a div either.
|
07-10-2009, 08:10 AM | #4 |
Reticulator of Tharn
Posts: 618
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
|
|
07-10-2009, 08:19 AM | #5 |
book creator
Posts: 9,656
Karma: 3856660
Join Date: Oct 2008
Location: Luxembourg
Device: Kindle Scribe
|
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..
|
Advert | |
|
07-10-2009, 08:35 AM | #6 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
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 |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mobi to epub page break | mr.ninja13 | Calibre | 23 | 08-09-2011 03:06 PM |
[Old Thread] epub -> mobi conversion; blank page after image | joubert | Calibre | 10 | 03-07-2011 06:26 PM |
Double chapter break when removing first image | tochill | Calibre | 0 | 03-04-2010 08:41 PM |
Strange behavior converting from ODT to EPUB, lots of page-break | superanima | Calibre | 0 | 01-25-2010 03:57 AM |
converting epub to pdf: can't get the front page image in | Nicoo | Calibre | 3 | 12-05-2009 09:18 AM |