Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 01-24-2022, 11:14 AM   #16
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 9,848
Karma: 136487785
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by BKh View Post
I found this 10 year old post but not much else giving opinions on setting line height in epubs.

I am mainly a Kindle user and that has allowed the user to set line height for a long time. However I see that in Calibre and ADE, this is not an option.

What is currently considered best practice for setting line height?
Actually, KDP will override any body-font line-height setting and change it back to 1.2ems. You can change the line-height, individually, of a paragraph here or there, or a div, containing some text, but if you try to put that on the main p setting or the body tag, it seems to fail (be overridden) pretty consistently.

It will APPEAR to work, when the book is initially created and previewed, but once it goes through the PW (Publishing Workflow, which is what happens when you push "publish" at KDP), the line-height will be brought back into KDP compliance with their Publishing Guidelines.

Hitch
Hitch is offline   Reply With Quote
Old 01-24-2022, 04:30 PM   #17
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 65,559
Karma: 108609473
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
The thing is, if you do put in line-height you can end up taking away the ability for some to adjust the line-height to what they want. You really don't want to do that.
JSWolf is offline   Reply With Quote
Old 01-25-2022, 07:51 PM   #18
JJ Johnson
Connoisseur
JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 2119794
Join Date: Feb 2020
Location: Colorado
Device: Kobo Libra H20
Related(?)

What would be the CSS to get exactly one line height's worth of paragraph spacing?
JJ Johnson is offline   Reply With Quote
Old 01-25-2022, 08:01 PM   #19
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,455
Karma: 14308992
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by JJ Johnson View Post
Related(?)

What would be the CSS to get exactly one line height's worth of paragraph spacing?
Add the space to the top of the paragraph with css on the p tag:
Code:
p {
    margin-top: 1em;
}
An em is the height of a character (in that paragraph's font). You can tweak it and use something like 0.5em or 1.5em. As I remember 1em is too much so 0.5em or 0.65em or something looks better. Some people make it so it's just perceptible; subtle but effective. Purists tend to be scandalized if you use both paragraph indentation and space between paragraphs.

Last edited by hobnail; 01-25-2022 at 08:16 PM.
hobnail is offline   Reply With Quote
Old 01-25-2022, 08:19 PM   #20
JJ Johnson
Connoisseur
JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.JJ Johnson ought to be getting tired of karma fortunes by now.
 
Posts: 68
Karma: 2119794
Join Date: Feb 2020
Location: Colorado
Device: Kobo Libra H20
Quote:
Originally Posted by hobnail View Post
Code:
p {
    margin-top: 1em;
}
That was my first thought, but will it maintain one line of spacing no matter how the line-spacing is adjusted by the user on the reader?

This would be for books where I have no paragraph indentation, so one full line of spacing doesn't seem too much at all. I prefer this layout where there's a lot of dialog, rather than having a lot of one-line paragraphs that are indented.

Last edited by JJ Johnson; 01-25-2022 at 08:41 PM.
JJ Johnson is offline   Reply With Quote
Old 01-25-2022, 11:36 PM   #21
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,455
Karma: 14308992
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by JJ Johnson View Post
That was my first thought, but will it maintain one line of spacing no matter how the line-spacing is adjusted by the user on the reader?
Sorry, I don't know. Is there some reason you can't experiment and try it? As far as I know margin-top is the standard way of adding space between paragraphs. You could add it to the bottom but my vague memory is that things work better when it's added at the top.

Last edited by hobnail; 01-25-2022 at 11:51 PM.
hobnail is offline   Reply With Quote
Old 01-26-2022, 12:48 AM   #22
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 9,848
Karma: 136487785
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by JJ Johnson View Post
That was my first thought, but will it maintain one line of spacing no matter how the line-spacing is adjusted by the user on the reader?

This would be for books where I have no paragraph indentation, so one full line of spacing doesn't seem too much at all. I prefer this layout where there's a lot of dialog, rather than having a lot of one-line paragraphs that are indented.
Well, this is a discussion about CSS and HTML, not book layout--but for what it's worth, the industry standard is first-line indent, no space between, no matter how much dialogue there is.

I can tell you--and I know I'm far from the only one--that when, on KU, (or KS) I come across a block-style novel, I'll report the formatting to KDP immediately, so that they'll issue a KQN (Kindle Quality Notice) to the publisher, to have it fixed. And I'll return it--come back to it when it's correctly formatted. I'm trying to read a book--an eBook--where space matters. I don't care to have my precious screen-space wasted with empty blank lines.

I know this sounds harsh and I don't really mean for it to--but using block-style paragraph formatting in novels is not a professional, commercial look. Take a look at all the novels you see from Random House, Scribner, etc. on Amazon, B&N, wherever you buy them. See others with block style? No, you won't.

You can use top-margin for your line of space. Works fine.

Hitch
Hitch is offline   Reply With Quote
Old 01-27-2022, 05:07 AM   #23
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 65,559
Karma: 108609473
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
Quote:
Originally Posted by Hitch View Post
Well, this is a discussion about CSS and HTML, not book layout--but for what it's worth, the industry standard is first-line indent, no space between, no matter how much dialogue there is.

I can tell you--and I know I'm far from the only one--that when, on KU, (or KS) I come across a block-style novel, I'll report the formatting to KDP immediately, so that they'll issue a KQN (Kindle Quality Notice) to the publisher, to have it fixed. And I'll return it--come back to it when it's correctly formatted. I'm trying to read a book--an eBook--where space matters. I don't care to have my precious screen-space wasted with empty blank lines.

I know this sounds harsh and I don't really mean for it to--but using block-style paragraph formatting in novels is not a professional, commercial look. Take a look at all the novels you see from Random House, Scribner, etc. on Amazon, B&N, wherever you buy them. See others with block style? No, you won't.

You can use top-margin for your line of space. Works fine.

Hitch
I agree with this. Besides being unprofessional, it makes for a terrible reading experience.
JSWolf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kepub Line-Height lordeagle Kobo Reader 4 03-30-2021 02:46 PM
CSS line height vs Kobo line spacing slider? bongoman Kobo Reader 2 07-12-2020 01:25 PM
line height Rellwood Conversion 3 04-07-2018 04:34 AM
Aura H2O Line height setting is ignored kAlvaro Kobo Reader 6 08-09-2016 07:59 AM
optimal line height ? cybmole Sigil 6 09-05-2013 09:30 AM


All times are GMT -4. The time now is 08:19 AM.


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