![]() |
#31 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Well... And my issue? Could it bei a bug in the firmware, helpless that I am?
|
![]() |
![]() |
![]() |
#32 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,591
Karma: 11722446
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
I honestly don't remember where I picked up this bit of CSS, or when, but it was quite possibly from someone here on MobileRead.
I've not done a ton of testing yet, but it seems to work at least some of the time, as long as you aren't getting carried away with how much larger you make the first letter. But I could be wrong and it might catastrophically fail somewhere. The smarter folks here will undoubtedly tell me so and I'll learn from them! ![]() I'm pretty sure it did not work for Kindle AZW3, but I think it worked for KFX on Kindle, EPUB, and KEPUB on Kobo when I last played with it. Code:
.first-letter { font-size: 1.50em; line-height: 0.80; /* Set line-height by using default value of 1.2 divided by font-size, above. */ vertical-align: baseline; } |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
As for px or % for margins or padding, there is one case where I use % for margins and it's OK that the line changes size based on the screen. I use this code for section breaks. It gives a 2px 20% wide line. But for things like chapter headers, I see a lof of nonsense such as a 15% top margin. For places where you don't want the space to change based on the screen size, you don't want % or px. Code:
hr { margin-top: 0.9em; margin-right: 40%; margin-bottom: 0.9em; margin-left: 40%; border-top: 2px solid; } |
|
![]() |
![]() |
![]() |
#34 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#35 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Code:
.first-letter { font-size: 1.5em; line-height: 0; } |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
My problem left me no peace, the more than there seems no one else to have it on the Kobo.
So I guessed that it might be my own fault, and, indeed, I found it! I use KoboPatch, and among those, there is one called "Force user line-spacing in Kepubs". It overrides line-spacing set by the publisher in order to enable the slider of the device to take effect. This one I had selected, and therefore the issue. I removed it, and all's well! |
![]() |
![]() |
![]() |
#37 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,792
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#38 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 819
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Quote:
|
|
![]() |
![]() |
![]() |
#39 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,055
Karma: 11391181
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Quote:
Hi |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Line height issue | Mercador | Kobo Reader | 19 | 07-21-2020 02:32 PM |
CSS line height vs Kobo line spacing slider? | bongoman | Kobo Reader | 2 | 07-12-2020 01:25 PM |
Strange first line of chapter issue in kepub | bongoman | Devices | 2 | 07-09-2020 07:21 AM |
line height | Rellwood | Conversion | 3 | 04-07-2018 04:34 AM |
Kindle for iOS (AZK format) - line height issue | heulwen.jones | Kindle Formats | 7 | 05-12-2016 12:24 AM |