|
|
#1 |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2026
Device: none
|
Eliminate Top/Bottom White Space on Page
Hello, I'm an ebook newbie and total dullard when it comes to coding. I'm in the process of formatting an ebook with Calibre editor, but when I preview the book in Kindle Reader or on KDP's online previewer, there's too much white space above and below the text.
Is there an overarching setting in CSS that controls that feature? Many thanks in advance for any help or insights. |
|
|
|
|
|
#2 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,512
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Most of that is the KINDLE. Margins top and bottom.
![]() Do check the Margins in the BODY in your book. IIRC the big A dislikes you setting those on books for sale (their store). |
|
|
|
|
|
#3 | |
|
Junior Member
![]() Posts: 6
Karma: 10
Join Date: Jan 2026
Device: none
|
Quote:
Right now the margin is set to 5%: body { margin: 5%; font-size: 100%; font-family: "GaramondRegular", serif; line-height: 1.35em; I don't want to make it 0% because it also affects the left-right margin. |
|
|
|
|
|
|
#4 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,700
Karma: 245099999
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
It might be several things. Top and bottom margin, or widows and orphans. Hard to say without seeing the code.
|
|
|
|
|
|
#5 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,512
Karma: 62503986
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
body {
margin: 5%;
font-size: 100%;
font-family: "GaramondRegular", serif;
line-height: 1.35em;
Then you added line-height: (1.2 is standard and default) |
|
|
|
|
|
#6 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14,700
Karma: 245099999
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
|
Delete line-height. Let your readers set their own.
Ditto for body margins. |
|
|
|
|
|
#7 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82,066
Karma: 150871335
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
And set widows and orphans to 1. This is what I do...
Code:
body {
widows: 1;
orphans: 1;
margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
text-align: justify;
}
p {
margin-top: 0;
margin-bottom: 0;
widows: 1;
orphans: 1;
text-indent: 1.2em;
}
Last edited by JSWolf; 02-07-2026 at 03:03 PM. |
|
|
|
![]() |
| Tags |
| ebook formatting, layout, margins, padding |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| read comic books on kindle paperwhite. landscape view top and bottom half of page | iateadonut | Amazon Kindle | 1 | 11-24-2023 01:59 PM |
| Remove empty space at the bottom of page before figure. | bo4568 | Workshop | 11 | 07-05-2020 09:17 AM |
| White space at the bottom of an epub on prs 650 | sage79 | Sony Reader | 6 | 04-11-2013 03:21 PM |
| Scene breaks at page top/bottom | radius | Workshop | 20 | 12-15-2009 07:59 PM |
| RTF Settings and blank space at the bottom of the page | Greg G | Sony Reader | 2 | 10-10-2006 06:31 AM |