aligning 2 blocks in a row
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 6
- Joined: Fri Jun 24, 2011 4:56 pm
aligning 2 blocks in a row
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
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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: aligning 2 blocks in a row
Post by sorin_ristache »
Hello,
Did you try with two table cells? Each cell can have a separate alignment (justify, left, right). For example:
Regards,
Sorin
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service