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
 

Reply via email to