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 Stefano Barella <st...@one.it> on 2002/06/28 10:29:13 UTC
How to Center a text in a table cell?
Hi, I'm Stefano and I have a problem
with xsl-fo tables. I don't know how I
can center a text verticaly in a cell table.
I know how to center the text horizontally
But I'd like to do both.
Can anybody help me ?
My Example below :
<fo:table-row height="0.5cm">
<fo:table-cell number-rows-spanned="3" border-width="0.01mm"
border-style="solid">
<fo:block text-align="center">
<xsl:value-of select="TD[@cell='0']" />
</fo:block>
</fo:table-cell>
</fo:table-row>
Bye , thanks
Stefano Barella
Re: How to Center a text in a table cell?
Posted by Ralf Steppacher <st...@esteam.de>.
> I don't know how I
> can center a text verticaly in a cell table.
<fo:table-cell display-align="center" text-align="center">
<fo:block>Centered</fo:block>
</fo:table-cell>
HTH
Ralf
RE: How to Center a text in a table cell?
Posted by Torsten Erler <er...@net-linx.de>.
try:
<fo:table-cell display-align="center">
Greeting Torsten
> -----Original Message-----
> From: Stefano Barella [mailto:stefano.barella@one.it]
> Sent: Freitag, 28. Juni 2002 10:29
> To: fop-user@xml.apache.org
> Subject: How to Center a text in a table cell?
>
>
> Hi, I'm Stefano and I have a problem
> with xsl-fo tables. I don't know how I
> can center a text verticaly in a cell table.
> I know how to center the text horizontally
> But I'd like to do both.
> Can anybody help me ?
>
> My Example below :
>
> <fo:table-row height="0.5cm">
> <fo:table-cell number-rows-spanned="3" border-width="0.01mm"
> border-style="solid">
> <fo:block text-align="center">
> <xsl:value-of select="TD[@cell='0']" />
> </fo:block>
> </fo:table-cell>
> </fo:table-row>
>
> Bye , thanks
> Stefano Barella
>
>
>
>
>
>
>