Page 1 of 1

aligning 2 blocks in a row

Posted: Mon Feb 06, 2012 3:22 am
by CDickson
Hello.

I want to align 2 blocks side by side and align the text in each the same way. Is this possible. I tried an inline block within fo:inline but they are not aligned. I need to do this in a label /detail manner where I can't use an list block eg. payment(text in block one) monetary value in block two beside this, where the second block is right aligned. I aslo intend to group similar blocks below this in a row.

Hope someone can help.

Thanks.

C

Re: aligning 2 blocks in a row

Posted: Mon Feb 06, 2012 5:57 pm
by sorin_ristache
Hello,

Did you try with two table cells? Each cell can have a separate alignment (justify, left, right). For example:

Code: Select all

   <fo:table>
<fo:table-body>
<fo:table-row>
<fo:table-cell>
<fo:block end-indent="0.2in" text-align="justify">This paragraph should be the left side. The text is black.</fo:block>
</fo:table-cell>
<fo:table-cell>
<fo:block start-indent="0.2in" text-align="left">And this paragraph should be the right side. Also the text is black.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

Regards,
Sorin