View Single Post
Old 11-15-2011, 11:38 AM   #1
Skeezix began at the beginning.
Posts: 28
Karma: 10
Join Date: Jun 2011
Device: Kindle
Left-justified text in a right-justified box

So for this book I'm formatting, I need to have a block of text where the box itself is flushed right, but the text inside the box is left-justified. In web browsers, I can accomplish that like this:

<div style="float: right">
   <p style="text-align: left">First line<br>
      Second line</p>

<p style="clear: both">And back to regular text.</p>
But when I convert this in Calibre, it centers the text instead.

Anyone know why this is happening and/or how I can get it to do what I want?
Skeezix is offline   Reply With Quote