You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Yann BONNAILLIE <yb...@rhinfo.com> on 2002/02/20 15:49:25 UTC
How to center table or image in .fo ?
Hi,
I got a problem to center a table in my pdf document
Here is the code :
<fo:table>
<fo:table-column column-width="5cm"/>
<fo:table-column column-width="5cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-width="0.02cm" border-style="solid" padding-left="0.1cm" padding-top="0.1cm">
<fo:block>Cell 1</fo:block>
</fo:table-cell>
<fo:table-cell border-width="0.02cm" border-style="solid" padding-left="0.1cm" padding-top="0.1cm">
<fo:block>Cell 2</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
I've already tried to put it in a block and to set margin or text-align.... but that's not good.
I would like to have the table centered in my page.
Someone can help me please ? :-(
Yann