View Single Post
Old 11-15-2011, 12:38 PM   #1
Skeezix
Member
Skeezix began at the beginning.
 
Posts: 20
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:

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

<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