|
|
#1 |
|
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
| Advert | |
|
|
![]() |
|
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 |