![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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} Last edited by charleski; 07-23-2010 at 05:58 AM. Reason: fixed images |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
And thanks for the hint about top rather text-top. Why did you suggest line-height: 0.8? Regards, Alex |
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,543
Karma: 19001583
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).
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
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 |