I think the post you needed to see is:

> Hi,
>  
> please have a look at the FOP FAQs, I think the solution should be in
there:
>  
> - create a table as large as the page-body with only one cell
> - put your table into the block inside that cell
> - center the block in that cell
>  
> HTH, Corinna

You can see the whole thread at
http://marc.theaimsgroup.com/?l=fop-dev&m=100703165918190&w=2

Anyway, to give you an example, assuming your html is:

<div align="right">
        <table>
                [Stuff Inside Table]
        </table>
</div>

Then in XSL-FO (with FOP at least) you have to do:

<fo:table>
        <fo:table-column column-width="[What Ever Width You Want]"/>
        <fo:table-body>
                <fo:table-row>
                        <fo:table-cell>
                                <fo:block text-align="end">
                                        <fo:table>
                                                [Stuff Inside Table]
                                        </fo:table>
                                </fo:block>
                        </fo:table-cell>
                </fo:table-row>
        </fo:table-body>
</fo:table>  

Hope that helps. If you are still confused then maybe you could send me the
files you are working with?

---
Paul Smith


> -----Original Message-----
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: 04 December 2001 15:56
> To: [EMAIL PROTECTED]
> Subject: Newbie - controlling table alignment
> 
> 
> I've seen several posts in various archives asking the same 
> question, but
> haven't been able to find an answer yet - how do you control 
> aligning of an
> entire table (not the individual cell's contents)?
> 
> ie in HTML something like
> <div align="left | center | right">
> <table...>
> </table>
> </div>
> 
> I've attempted using the "text-align" tag, but didn't seem to work.


*******************************************************************
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.

********************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to