You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Anupam Sood <An...@morganstanley.com> on 2002/07/01 19:04:15 UTC
centering table
Hi
how can center a table ? thanks
anupam
Re: centering table
Posted by Sébastien DIAZ <sd...@magellan-online.com>.
gyegye
use this
<block>
<table ... display-align="center">
</table>
</block>
If it don't work I'm sorry It's possible I use an other possibilities but I
don't remember where is that!!!
sorry
Sebastien Diaz
----- Original Message -----
From: "Anupam Sood" <An...@morganstanley.com>
To: <fo...@xml.apache.org>
Sent: Monday, July 01, 2002 7:32 PM
Subject: Re: centering table
sorry should say does NOT align the table
Anupam Sood wrote:
> Hi
>
> thanks for the reply, please see the code below, which does align the
> table in the center
>
> <?xml version='1.0' encoding='utf-8'?>
> <fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'>
>
> <fo:layout-master-set>
> <fo:simple-page-master master-name='simple'>
> <fo:region-body margin-bottom='5pt'/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference='simple' margin-top="5pt"
> margin-bottom="5pt" margin-left="5pt" margin-right=
> "5pt" >
> <fo:flow flow-name='xsl-region-body'>
>
> <fo:block vertical-align="top" text-align="center" font-size="16pt" >
> Centered Align </fo:block>
>
> <fo:table table-layout='fixed' display-align="center" >
> <fo:table-column column-width='50mm'/>
> <fo:table-body border-style="solid" margin-top="25pt"
> border-width="0.5pt" >
> <fo:table-row>
> <fo:table-cell text-align='center'><fo:block>row
> 1</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row2</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 3</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 5</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 6</fo:block></fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence></fo:root>
>
> Sébastien DIAZ wrote:
>
> > use this
> > <fo:table ... display-align="center">
> >
> > cordially
> > Seb DIAZ
> > PROVAL NTIC PARIS
> > ----- Original Message -----
> > From: "Anupam Sood" <An...@morganstanley.com>
> > To: <fo...@xml.apache.org>
> > Sent: Monday, July 01, 2002 7:04 PM
> > Subject: centering table
> >
> > > Hi
> > >
> > > how can center a table ? thanks
> > >
> > > anupam
> > >
> > >
Re: centering table
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Anupam Sood wrote:
> sorry should say does NOT align the table
You have to embed the table which has to be centered
in a one row, one column table:
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row height="297mm">
<fo:table-cell display-align="center">
<fo:block text-align="center">
<!-- your table here -->
<fo:external-graphic src="foo.jpg"/>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
J.Pietschmann
Re: centering table
Posted by Anupam Sood <An...@morganstanley.com>.
sorry should say does NOT align the table
Anupam Sood wrote:
> Hi
>
> thanks for the reply, please see the code below, which does align the
> table in the center
>
> <?xml version='1.0' encoding='utf-8'?>
> <fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'>
>
> <fo:layout-master-set>
> <fo:simple-page-master master-name='simple'>
> <fo:region-body margin-bottom='5pt'/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference='simple' margin-top="5pt"
> margin-bottom="5pt" margin-left="5pt" margin-right=
> "5pt" >
> <fo:flow flow-name='xsl-region-body'>
>
> <fo:block vertical-align="top" text-align="center" font-size="16pt" >
> Centered Align </fo:block>
>
> <fo:table table-layout='fixed' display-align="center" >
> <fo:table-column column-width='50mm'/>
> <fo:table-body border-style="solid" margin-top="25pt"
> border-width="0.5pt" >
> <fo:table-row>
> <fo:table-cell text-align='center'><fo:block>row
> 1</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row2</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 3</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 5</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block>Row 6</fo:block></fo:table-cell>
> </fo:table-row>
> </fo:table-body>
> </fo:table>
> </fo:flow>
> </fo:page-sequence></fo:root>
>
> Sébastien DIAZ wrote:
>
> > use this
> > <fo:table ... display-align="center">
> >
> > cordially
> > Seb DIAZ
> > PROVAL NTIC PARIS
> > ----- Original Message -----
> > From: "Anupam Sood" <An...@morganstanley.com>
> > To: <fo...@xml.apache.org>
> > Sent: Monday, July 01, 2002 7:04 PM
> > Subject: centering table
> >
> > > Hi
> > >
> > > how can center a table ? thanks
> > >
> > > anupam
> > >
> > >
Re: centering table
Posted by Anupam Sood <An...@morganstanley.com>.
Hi
thanks for the reply, please see the code below, which does align the
table in the center
<?xml version='1.0' encoding='utf-8'?>
<fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'>
<fo:layout-master-set>
<fo:simple-page-master master-name='simple'>
<fo:region-body margin-bottom='5pt'/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference='simple' margin-top="5pt"
margin-bottom="5pt" margin-left="5pt" margin-right=
"5pt" >
<fo:flow flow-name='xsl-region-body'>
<fo:block vertical-align="top" text-align="center" font-size="16pt" >
Centered Align </fo:block>
<fo:table table-layout='fixed' display-align="center" >
<fo:table-column column-width='50mm'/>
<fo:table-body border-style="solid" margin-top="25pt"
border-width="0.5pt" >
<fo:table-row>
<fo:table-cell text-align='center'><fo:block>row
1</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block>Row2</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block>Row 3</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block>Row 5</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block>Row 6</fo:block></fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence></fo:root>
Sébastien DIAZ wrote:
> use this
> <fo:table ... display-align="center">
>
> cordially
> Seb DIAZ
> PROVAL NTIC PARIS
> ----- Original Message -----
> From: "Anupam Sood" <An...@morganstanley.com>
> To: <fo...@xml.apache.org>
> Sent: Monday, July 01, 2002 7:04 PM
> Subject: centering table
>
> > Hi
> >
> > how can center a table ? thanks
> >
> > anupam
> >
> >
Re: centering table
Posted by Sébastien DIAZ <sd...@magellan-online.com>.
use this
<fo:table ... display-align="center">
cordially
Seb DIAZ
PROVAL NTIC PARIS
----- Original Message -----
From: "Anupam Sood" <An...@morganstanley.com>
To: <fo...@xml.apache.org>
Sent: Monday, July 01, 2002 7:04 PM
Subject: centering table
> Hi
>
> how can center a table ? thanks
>
> anupam
>
>