2

Using Calibre I have tried to use ´text-align: left´ in CSS but viewing the resulting epub-file with iBooks the result is still justified text. How can I change to left alignment?enter image description here

1
  • Do you have "Justify text" turned on in iBooks -> Preferences -> General? That will override the CSS settings.
    – beaker
    Oct 28, 2018 at 15:54

1 Answer 1

2

I don't think text-align left and Justify text have anything to do with one another. Justification is usually controlled by the reading system, while text-align left is the default behavior for text. The css property text-align mainly has to do with alignment inside of a box (usually a single line). You could use another css property to scoot the text to the left or the right (margin, etc).

1
  • text-align does indeed distinguish left and justify (MDN). It is more likely a default setting is overriding this directive. More specificity (MDN) may override the default setting, would need to test.
    – rgchris
    Nov 13, 2018 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.