|
|
#1 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
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 |
|
|
|
|
|
#2 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,845
Karma: 150249631
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 | |
|
|
|
|
#3 |
|
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 33
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.
|
|
|
|
|
|
#4 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,845
Karma: 150249631
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.
|
|
|
|
|
|
#5 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,215
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,845
Karma: 150249631
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 10:28 PM |
| Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. | MarjaE | Library Management | 1 | 03-30-2021 12:46 PM |
| E-book viewer: "Lookup words" window | iG0R | Calibre | 26 | 04-18-2020 10:20 PM |
| "No hack" comic book viewer on ALL eink kindles! | geekmaster | Kindle Developer's Corner | 36 | 05-18-2012 11:53 AM |
| E-book Viewer Updates "Date Modified" on File. Why? | spedinfargo | Calibre | 3 | 02-28-2011 06:24 PM |