View Single Post
Old 02-15-2018, 05:21 AM   #26
mzso
Enthusiast
mzso began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Feb 2018
Device: PC
Quote:
Originally Posted by deback View Post
I use Transform in Look and Feel for line-height (4 entries), plus I have some entries in Styling to add this code when it's not included in the <body class> code:

If line-height is less than or equal to 1.2, change it to 1.2.
If line-height is less than or equal to 1.2em, change it to 1.2.
If line-height is greater than or equal to 1.2, change it to 1.2.
If line-height is greater than or equal to 1.2em, change it to 1.2.


For text alignment, manually change (in the .css file) to one of the following for the CSS class:

text-align: left;
text-align: right;
text-align: justify;
text-align: center;

However, I have a bunch of entries in Styling that do this for me most of the time when converting, and I rarely have to manually change it. Here's what I have in Styling:

I also have 30pt for left and right margins in Page Setup (at the bottom right of that screen).
So. Why wouldn't this work?

If text-align is not justify change it to justify.

I imagined it would make every text justified but in reality the book doesn't change at all.

Edit:
I just realized that the same books appear justified when I view them in SumatraPDF, meanwhile they appear left aligned when viewed in Calibre and after conversion to PDF also.

Last edited by mzso; 02-15-2018 at 05:29 AM.
mzso is offline   Reply With Quote