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 Moataz Omar <mo...@i12.com> on 2002/09/14 21:03:18 UTC

cell horizontal alignment

Dear All,

I got two questions :

How to adjust a cell content horizontal alignment to be centered ?

and How to make an inline graphic vertically centered between the text surrounding it ?

inline graphic top
--------------------------------------------------------------------------------

|                      |
|                      |
bla bla bla left text    |        figure       |  right text bla bla bla
|                      |
|                      |

--------------------------------------------------------------------------------

inline graphic bottom



Best regards
Moataz

Re: cell horizontal alignment

Posted by clholm <vp...@earthlink.net>.
If you are dealing with  "<fo:table>",  try adjusting the column width
something like:

        <fo:table>
        <fo:table-column column-width="6cm"/>
        <fo:table-column column-width="3cm"/>
        <fo:table-column column-width="6cm"/>
        <fo:table-body>
         .........

In my experience the  image will scale to the column width.


Regards,

Carl Holm





Moataz Omar wrote:

> Dear All, I got two questions : How to adjust a cell content
> horizontal alignment to be centered ? and How to make an inline
> graphic vertically centered between the text surrounding it ?
>                          inline graphic top
> -----------------------------------------------------------------------
>
>                       |                      |
>                       |                      |
>  bla bla bla left text    |        figure       |  right text bla bla
>                                  bla
>                       |                      |
>                       |                      |
> -----------------------------------------------------------------------
>
>                         inline graphic bottom
>    Best regardsMoataz

Re: cell horizontal alignment

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Moataz Omar wrote:
> How to adjust a cell content horizontal alignment to be centered ?

Try display-align="center"

> and How to make an inline graphic vertically centered between the text surrounding it ?

Do you mean vertically aligned at the middle line? This
is not implemented.

J.Pietschmann