11-05-2022, 07:18 AM | #1 |
Enthusiast
Posts: 29
Karma: 10738
Join Date: Aug 2018
Device: none
|
Viewer: Book does not "justify"
Hi there,
I want all my books justified when viewing, but the code "body { line-height: 1.5; text-align: justify;}" does not work on every book. What am I doing wrong? Cheers, FK |
11-05-2022, 07:22 AM | #2 |
Resident Curmudgeon
Posts: 74,645
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
That's because the eBook's CSS has code elsewhere that overrides this. It changes the line-height and the alignment. You cannot rely on your code always working. The only way to be 100% sure is to edit the code of the eBook.
|
Advert | |
|
11-05-2022, 09:47 AM | #3 |
Enthusiast
Posts: 29
Karma: 10738
Join Date: Aug 2018
Device: none
|
Ok seems reasonable, when converting I always force justify, but I don't convert every book I take a look at.
|
11-05-2022, 10:10 AM | #4 |
Resident Curmudgeon
Posts: 74,645
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You don't need to convert. Just delete all line-height and left justification lines in the CSS after removing all unused CSS. Then you can put your code in body and it will work.
|
11-05-2022, 10:15 AM | #5 |
Wizard
Posts: 2,091
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
|
Advert | |
|
11-05-2022, 02:50 PM | #6 |
Resident Curmudgeon
Posts: 74,645
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
calibre 5.44 Linux 64-bit, "E-book viewer" stuck on "Loading book..." | NotAMobofCrows | Viewer | 14 | 07-28-2022 09:28 PM |
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 11:46 AM |
E-book viewer: "Lookup words" window | iG0R | Calibre | 26 | 04-18-2020 09:20 PM |
"No hack" comic book viewer on ALL eink kindles! | geekmaster | Kindle Developer's Corner | 36 | 05-18-2012 10:53 AM |
E-book Viewer Updates "Date Modified" on File. Why? | spedinfargo | Calibre | 3 | 02-28-2011 05:24 PM |