View Single Post
Old 05-18-2020, 03:12 PM   #12
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,109
Karma: 92190133
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by RbnJrg View Post
Indeed. Something has changed since you posted this:

https://www.mobileread.com/forums/sh...9&postcount=30

Now spaces are not more of fixed width. Because a margin of 3em must be the same in portrait or landscape mode (the same should happen with a negative indent of -3em).
I took a look at the book and the problem has to do with how margin and indent are handled during conversion to KFX format. Your CSS:

Code:
.hanging {
   text-indent: -3em;
   margin-left: 3em;
}
translates in KFX into:

Code:
  text_indent: {
    value: -9.375,
    unit: percent,
  },
  margin_left: {
    value: 9.375,
    unit: percent,
  },
So the indentation is being rendered as a fixed percentage of the screen size in KFX.
jhowell is offline   Reply With Quote