Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 11-05-2022, 07:18 AM   #1
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
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
FelixKrull is offline   Reply With Quote
Old 11-05-2022, 07:22 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,624
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by FelixKrull View Post
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
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.
JSWolf is offline   Reply With Quote
Advert
Old 11-05-2022, 09:47 AM   #3
FelixKrull
Enthusiast
FelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watchFelixKrull is clearly one to watch
 
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.
FelixKrull is offline   Reply With Quote
Old 11-05-2022, 10:10 AM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,624
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by FelixKrull View Post
Ok seems reasonable, when converting I always force justify, but I don't convert every book I take a look at.
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.
JSWolf is offline   Reply With Quote
Old 11-05-2022, 10:15 AM   #5
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,091
Karma: 8796704
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Try using:

Code:
body { line-height: 1.5; text-align: justify !important;
bernie
Quote:
Originally Posted by FelixKrull View Post
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
gbm is offline   Reply With Quote
Advert
Old 11-05-2022, 02:50 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,624
Karma: 130140792
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by gbm View Post
Try using:

Code:
body { line-height: 1.5; text-align: justify !important;
bernie
Sorry, but that won't work. You do not want justify to override center and/or right justification.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:23 PM.


MobileRead.com is a privately owned, operated and funded community.