W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2002

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

From: Matthew Mastracci <matt@aclaro.com>
Date: Wed, 6 Mar 2002 16:57:45 -0500 (EST)
Message-ID: <3C8690BD.8060308@aclaro.com>
To: www-xsl-fo@w3.org
Is it possible to get the block within a table cell to automatically 
consume 100% of the available space for its line-height?

I'd like to do this:

<fo:table-cell vertical-align="middle" text-align="center" 
number-rows-spanned="2">
<fo:block>test</fo:block>
</fo:table-cell>

and have the block consume the entire table cell, making the label 
"test" centered within the available space.  Right now, the block is 
only as big as the line size for the font, jamming the label at the top 
of the column.

What I have:
---------
test


---------

What I want:
----------

test

----------

Any ideas?
Received on Thursday, 7 March 2002 11:06:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT