|
|
#16 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 193
Karma: 1537710
Join Date: Jul 2021
Device: N/A
|
Some working code to get a dropcap (I don't know if it works in a kindle though) :
https://www.mobileread.com/forums/at...1&d=1790102547 |
|
|
|
|
|
#17 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,031
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That solution will not work properly on a Kindle. It doesn't line the line hight in the CSS.
|
|
|
|
|
|
#18 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,031
Karma: 153791427
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Can you come up with a solution that works regardless of what the line height is for the body text? |
|
|
|
|
|
|
#19 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,909
Karma: 9600930
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
|
|
|
|
|
|
#20 | |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 193
Karma: 1537710
Join Date: Jul 2021
Device: N/A
|
Quote:
To fix this, we need to remove the "heigth" directive in let1 (and optionally the "line-height" ones in let2 and let4 because they have no effect) and it will work with any line-height. Code:
/* Lettrines */
.let1{
display : block;
float : left;
margin-top : -0.5em;
margin-left : 1.30em;
margin-right : 0.20em;
}
.let2{
font-family:'Linux Libertine Display O';
font-size : 3.2em;
}
/*Réglage Lettrine J, Q et Ç (let2 vers let4) */
.let4{
font-family:'Linux Libertine Display O';
font-size : 2.9em;
}
It woks also if we change the font-size in p{} or body {} (example with 1.4em) Last edited by lomkiri; 09-23-2026 at 08:57 AM. |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to bulk edit/run check and fix on books | John IV | Editor | 3 | 03-12-2023 12:31 PM |
| Would Amazon find out if I edit and fix the error of my ebooks? | Julius Caesar | Amazon Kindle | 21 | 09-05-2016 05:44 AM |
| Aura HD Any idea on how to fix my device? | sdiox | Kobo Reader | 16 | 06-26-2015 07:25 PM |
| Device not charging -- is there a HW fix? | Savior1024 | Kindle Developer's Corner | 10 | 06-18-2015 08:25 PM |
| How to edit ebooks (fix typos etc.) while reading? | MCSmarties | Reading and Management | 6 | 07-28-2012 05:08 PM |