Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-22-2010, 07:09 AM   #1
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Problem with blank pages between chapters

I've just uploaded Lorna Doone, by R.D. Blackmore despite it having a problem in that it shows unnecessary and unwanted blank pages between chapters 37 and 38, and between chapters 74 and 75. I have no idea why it is doing this, and would be most grateful to anyone who can point out things that I can check to find out what is going on.

Because the book has 75 chapters I have grouped them in blocks of 10 chapters. Each chapter is formed on this template:

<div class="section" id="idno">

<h2>Section or chapter heading</h2><hr />

<p>Chapter material goes here</p>

<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam bibendum tempor nulla. Sed commodo. Aliquam feugiat lorem nec sem. Nullam consequat tristique libero. Suspendisse id erat. Duis ante sem, laoreet nec, nonummy non, posuere at, sapien. Nam porta. Cras sapien tortor, vehicula at, scelerisque quis, consequat at, enim. Fusce quis tortor. Quisque magna. Proin nunc. Phasellus purus metus, tempus a, lobortis in, mollis sed, erat. Nulla facilisi. Curabitur wisi.</p>

</div> <!-- End of chapter div; page break is in the CSS -->

and the CSS for section and page break is:

div.section {
margin: 0;
padding: 2em 0 0 0;
page-break-after: always;
} /* Sets top margin and page break for preface and chapters. */
div.section h2 { line-height: 110%; }

I can't see any way an extra page break from the CSS should occur where it does.

Can anyone help? It's probably staring me in the face but I can't see it and it's very frustrating.

Regards, Alex
AlexBell is offline   Reply With Quote
Old 07-22-2010, 09:07 AM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
Hmm, just took a look at it in Desktop ADE and I can't see the problem you describe, the page breaks seem just fine.

BTW, if you want footnotes to display without disrupting the line height in ADE, the right vertical-align to use is 'top', as 'text-top' will usually cause a gap:

.fn { font-size: 67%; vertical-align: text-top; }


.fn { font-size: 67%; vertical-align: top; line-height: 0.8}
Attached Thumbnails
Click image for larger version

Name:	text-top.PNG
Views:	931
Size:	35.2 KB
ID:	55595   Click image for larger version

Name:	top.PNG
Views:	937
Size:	35.2 KB
ID:	55596  

Last edited by charleski; 07-23-2010 at 05:58 AM. Reason: fixed images
charleski is offline   Reply With Quote
Old 07-23-2010, 05:41 AM   #3
AlexBell
Wizard
AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.AlexBell ought to be getting tired of karma fortunes by now.
 
AlexBell's Avatar
 
Posts: 3,413
Karma: 13369310
Join Date: May 2008
Location: Launceston, Tasmania
Device: Sony PRS T3, Kobo Glo, Kindle Touch, iPad, Samsung SB 2 tablet
Quote:
Originally Posted by charleski View Post
Hmm, just took a look at it in Desktop ADE and I can't see the problem you describe, the page breaks seem just fine.

BTW, if you want footnotes to display without disrupting the line height in ADE, the right vertical-align to use is 'top', as 'text-top' will usually cause a gap:

.fn { font-size: 67%; vertical-align: text-top; }


.fn { font-size: 67%; vertical-align: top; line-height: 0.8}
Thanks, Charleski, that's most helpful. I hadn't looked at the problem with ADE, only on my Cybook Gen3. I'll read the book with ADE and see how it looks. Of course I still don't know why I'm seeing the extra blank pages on my Cybook.

And thanks for the hint about top rather text-top. Why did you suggest line-height: 0.8?

Regards, Alex
AlexBell is offline   Reply With Quote
Old 07-23-2010, 06:25 AM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
In practice, the line-height value adjusts the vertical position of the superscript. Smaller values raise it higher, larger push it lower. Without this attribute it sits at the baseline.

'Text-top' should work without disrupting the line-height, and frankly so should 'super', but CSS is biased towards making sure text doesn't collide rather than maintaining a regular line-height, and this is the only value I found that will override that annoying behaviour.
charleski is offline   Reply With Quote
Old 07-23-2010, 07:01 AM   #5
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
I think I've used "font-size: 60%; vertical-align: super; line-height: 0;" sucessfully to get a correct superscript alignment and no effect on the inter-line separation (but with collisions sometimes, depending on the font).
Jellby is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blank pages on a pdf book afsandiego Sony Reader 6 12-19-2015 05:52 AM
HTML to PDF, blank pages after each chapter ibarro Calibre 5 08-02-2010 03:08 PM
Images on Kindle; blank pages joubert Kindle Formats 3 05-28-2010 03:49 PM
Blank pages with iPad timbgray Calibre 3 05-04-2010 09:43 PM
Blank pages JSWolf Calibre 4 11-29-2008 01:22 PM


All times are GMT -4. The time now is 03:50 PM.


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