Answers.Body: <p>You can try adding the following CSS:</p>
  <p><code>p { text-align:left !important; }</code></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-06-24T16:10:28.310Z
Answers.LastActivityDate: 2024-06-24T16:10:28.310Z
Answers.UserDisplayName: Frank Bonomo
Body: <p>This code:</p>
  
  <pre><code>body {
  text-align: left;
  }
  </code></pre>
  
  <p>doesn't put my text on the left side. Instead I get the block format with spaces of different size between the words. How can I align my text on the left?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-09T09:06:10.397Z
Comments.Text: Possible duplicate of [How to change text alignment with Calibre book editor](https://ebooks.stackexchange.com/questions/7058/how-to-change-text-alignment-with-calibre-book-editor)
Comments.UserDisplayName: Wool
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-08-09T12:08:58.440Z
Comments.Text: But the change of the CSS doesn't work. :/
Comments.UserDisplayName: kame
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-10-06T10:16:12.340Z
Comments.Text: Are you sure that is the only css you have? I suspect there is css that override your body styling, better to check that too.
Comments.UserDisplayName: Sukma Wardana
Tags: <calibre>
Title: Text-align in calibre doesn't work
UserDisplayName: kame
ThreadText: # Text-align in calibre doesn't work
  
  (Asked by: username_0 on 2018-08-09)
  
  This code:
  body {
  text-align: left;
  }
  
  doesn't put my text on the left side. Instead I get the block format with spaces of different size between the words. How can I align my text on the left?
  
  **Tags:** calibre
  
  > **Comments:**
  > **username_1**: Possible duplicate of [How to change text alignment with Calibre book editor](https://ebooks.stackexchange.com/questions/7058/how-to-change-text-alignment-with-calibre-book-editor)  
  > **username_0**: But the change of the CSS doesn't work. :/  
  > **username_2**: Are you sure that is the only css you have? I suspect there is css that override your body styling, better to check that too.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2024-06-24. Score: 0
  
  You can try adding the following CSS:
  
  `p { text-align:left !important; }`
  
  
  ---
  
  