Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 11-12-2026, 11:37 AM   #1
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 728
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 6
Cannot adjust line-height using Extra CSS

I am trying to adjust the line-height of an AZW3 ebook using the Extra CSS function in Calibre. The CSS looks like this:

body
{
orphans: 0; widows: 0;
line-height: 1.3em
}
html {
margin-right: -41px;
margin-left: -41px;
break-inside: avoid !important;
}

This works on my Paperwhite running fw 5.17.x. But No matter what em I set the line height, it makes no difference on my Paperwhite. Is this because it's running fw 5.20.1, and doesn't show my line-height value? I've tried bigger and smaller em with no change, have unticked the fonts and padding options from 'Filter Style Information', and have set minimum line height and line height to 0.0 in the Fonts section of the conversion window. I don't what's going on or how to rectify it.
Waylander is offline   Reply With Quote
Old 11-13-2026, 02:40 PM   #2
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: 85,778
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You cannot change the line height on a Kindle using CSS. The only way to change the line height is to use KF8 (AZW3) format and use a version of ChareInk7SP. The metadata inside these variations is set to reduce the line height on a Kindle. It doesn't work with KFX. It does work with KF8.

https://www.mobileread.com/forums/sh...d.php?t=184056

If you want a larger line height, you can edit the appropriate metadata of a font to increase the line height and see if that works. But you would still have to use KF8.

KFX has a fixed line height. You can only have what's in settings.
JSWolf is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS to force line height/spacing? AccidentallyLazy Editor 6 10-19-2020 09:31 PM
CSS line height vs Kobo line spacing slider? bongoman Kobo Reader 2 07-12-2020 02:25 PM
CSS Line Height RTL Only d351r3d ePub 10 06-03-2020 11:11 AM
Line height. - preferred css settings sunny1z Conversion 3 01-28-2013 01:43 PM
changing text line-height in css wjcroft EPUBReader 0 12-15-2010 04:13 PM


All times are GMT -4. The time now is 04:31 PM.


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