Re: Centering text in a table cell with number-rows-spanned

This doesnt work for me when I try do make a table with one single cell to
position some text in the center of a page:

I tried the following:

<fo:table height="200px">
  <fo:table-column column-width="200px"/>
  <fo:table-body>
     <fo:table-row>
          <fo:table-cell height="50px" display-align="center">
               <fo:block text-align="center">test3</fo:block>
          </fo:table-cell>
     </fo:table-row>
   </fo:table-body>
</fo:table>

the result looks like:
                     test3

(test3 on top of the page)
if i make a table with 2 columns and in one cell i have multiline text and
in the cell beside that i have one line of text and i do
"display-align="center"", then it works.
it seems, the height gets collapsed for the calculation of the vertical
position, alltough the height of the cell is correct (i tried that by
placing a second row below that).

is there any other possibility to place a block vertically centered on a
page?

Received on Monday, 8 July 2002 03:48:54 UTC