01-12-2020, 10:36 AM | #16 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Yup, changing to "Justify" in the Preferences will always work. The only problem with that is your cover images might not be centered, because this setting justifies all pages.
I prefer to change the text alignment in the CSS file for the actual classes used for the first paragraph and all other paragraphs. |
01-12-2020, 10:39 AM | #17 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
|
|
01-12-2020, 10:44 AM | #18 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
If there is a body class and if not, add one and make sure it has text-align: justify;. Then remove all lines of text-align: left;. That's the easiest way to do it. |
|
01-12-2020, 11:00 AM | #19 |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Yup, that will also work, but it's always good to know all your options, so it's not "a long way around for a shortcut." I already mentioned changing the <body> class in a prior post.
The problem with your method is this: You are editing the <body> class AND the two paragraph classes. So, your method involves three edits and my method involves only two edits (which is actually the easiest and quickest way to do it). Either way, the result is the same. I happen to prefer the quicker method by changing two "left" words to two "justify" words. And I use a macro to add this: text-align: justify; So, how can making only two edits be "a long way around" compared to making three edits? Think about it... I also have a macro (plus many more) that does the following (which I use often): margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; text-align: justify; text-indent: 1.2em; I just highlight all lines in the CSS file for the paragraph class and hit the macro hotkey to copy over whatever is listed in that class. Last edited by deback; 01-12-2020 at 11:30 AM. |
01-12-2020, 02:32 PM | #20 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Doing it my way, you don't have to deal with an unknown amount of <p> classes. You just set up the justify in body, dump any left justification and your done. |
|
01-12-2020, 08:01 PM | #21 |
C L J
Posts: 2,912
Karma: 21115458
Join Date: Dec 2008
Location: Birmingham UK
Device: Sony e-reader 505, Kindle PW2, Kindle PW3, Kobo Libra2
|
Thank you for the HTML answers, but I don't understand any of it. I don't even know where to find the HTML for a book.
On the other hand, I don't mind having off-centre covers; I spend very little time looking at the covers, prefering List View on the kindle. This seems a simpler way to do this too. I'm sure your more complex answers will help someone more into programing. Thanks. |
01-12-2020, 09:25 PM | #22 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
Last edited by deback; 01-12-2020 at 09:33 PM. |
|
01-12-2020, 09:29 PM | #23 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
|
|
01-13-2020, 05:04 AM | #24 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
When you fix the justification my way in CSS, it's properly fixed for all classes. Do it your way and you could miss out some classes. Plus, you have to find all the classes to add in the code to justify. My wau, you just have to add in the code once. You still have to remove all the left justify code in either case. Adding in body if need be is trivial. I have a shortcut setup in Calibre. All I do is type body and then hit control-j and my body and p classes as added in. I do have to dump the p class if the publisher added one. Otherwise I'll have two p classes. |
|
01-13-2020, 05:05 AM | #25 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
01-14-2020, 10:12 AM | #26 | |
Book E d i t o r
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
|
Quote:
|
|
01-14-2020, 02:22 PM | #27 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
Tags |
justification, ragged margins |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Page justification when converting from EPUB to AZW3 | Tomhik | Conversion | 1 | 01-22-2018 11:02 PM |
PRS-T1 Justification | Hatgirl | Sony Reader | 5 | 11-17-2011 09:59 AM |
[Kobo] Remove page number from right-hand margin + justification | digital_steve | Calibre | 5 | 08-05-2010 11:24 PM |
Next Firmware Update - Page margins and full justification | JBlyth | Kobo Reader | 32 | 07-11-2010 11:13 PM |
DX justification | jlinden | Amazon Kindle | 7 | 01-18-2010 07:22 AM |