> -----Original Message-----
> From: Neil Cooper [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 11, 2002 12:33 AM
> To: [EMAIL PROTECTED]
> Subject: Going nuts centering a table
> 
> 
> Hi,
> 
> After going nuts for a day and a half and also trawling the 
> archives of
> fop-dev and fop-user and the FAQs, can anyone please enlighten me to
> a) why the following code doesn't center the table and
> b) how to do it !.

I took your code and centered the table both vertically and horizontally
with the code below.

HTH,
Scott




<fo:root font-family="Helvetica" font-size="12pt" text-align="center"
xmlns:fo="http://www.w3.org/1999/XSL/Format";>
        <fo:layout-master-set>
                <fo:simple-page-master master-name="a4" page-height="297mm"
page-width="210mm" margin-top="0mm" margin-bottom="0mm" margin-left="10mm"
margin-right="10mm">
                        <fo:region-body margin-top="0mm"
margin-bottom="11mm"/>
                        <fo:region-before extent="0mm"/>
                        <fo:region-after extent="6mm"/>
                </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="a4">
                <fo:flow flow-name="xsl-region-body">
                        <fo:table table-layout="fixed" width="100%"
height="286mm">
                                <fo:table-column
column-width="proportional-column-width(1)"/>
                                <fo:table-column column-width="101mm"/>
                                <fo:table-column
column-width="proportional-column-width(1)"/>
                                <fo:table-body>
                                        <fo:table-row display-align="center"
height="290mm">
                                                <fo:table-cell>
                                                        <fo:block>
</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                        <fo:block>
                                                                <fo:table
table-layout="fixed" width="100%">
        
<fo:table-column column-width="26mm"/>
        
<fo:table-column column-width="74mm"/>
        
<fo:table-body font-family="Helvetica" font-size="10pt">
        
<fo:table-row>
        
<fo:table-cell border-width="0.05mm" border-style="double"
number-columns-spanned="1">
        
<fo:block text-align="left">Description</fo:block>
        
</fo:table-cell>
        
<fo:table-cell border-width="0.05mm" border-style="double"
number-columns-spanned="1">
        
<fo:block text-align="right">0</fo:block>
        
</fo:table-cell>
        
</fo:table-row>
        
</fo:table-body>
                                                                </fo:table>
                                                        </fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                        <fo:block>
</fo:block>
                                                </fo:table-cell>
                                        </fo:table-row>
                                </fo:table-body>
                        </fo:table>
                </fo:flow>
        </fo:page-sequence>
</fo:root>

Reply via email to