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

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

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).

  • 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 '18 at 15:24

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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