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

Vertical-align middle on table cells

From: Ramin Bozorgzadeh <RaminB@TCICREDIT.COM>
Date: Thu, 27 Mar 2003 12:39:38 -0500
Message-ID: <B6444D0E406AD511ADFB00D0B7893A6946D8E5@EXCHANGE>
To: www-xsl-fo@w3.org

I am trying to get the contents of my table cell to align to the middle.. I
tried using vertical-align middle on the <fo:table-cell> but that didnt seem
to do anything.. here is a snippet of my code:

<fo:table-cell width="{$label-width-after-spacing}{$unit-length}"
height="{$label-height-after-spacing}{$unit-length}"
font-weight="{$font-weight}" padding-left="{$label-padding}{$unit-length}"
vertical-align="middle">
	<fo:block font-weight="{$name-font-weight}">
		<xsl:value-of select="$first-name"/>
		<xsl:text> </xsl:text>
		<xsl:value-of select="$last-name"/>
	</fo:block>
	<fo:block>
		<xsl:value-of select="$address1"/>
	</fo:block>
	<xsl:if test="string-length($address1) &gt; 0">
		<fo:block>
			<xsl:value-of select="$address2"/>
		</fo:block>
	</xsl:if>
	<fo:block>
		<xsl:value-of select="$city"/>,
			<xsl:value-of select="$state"/>,
			<xsl:value-of select="$zip"/>
	</fo:block>
	<fo:block>
		<xsl:if test="string-length($country) &gt; 0">
			<fo:block>
				<xsl:value-of select="$country"/>
			</fo:block>
		</xsl:if>
	</fo:block>
</fo:table-cell>
-------------------------------------------------
Ramin Bozorgzadeh
Teledata Communications, Inc
100 Engineers Rd.
Hauppauge, NY 11788
(631) 231-6700 extension 117
www.tcicredit.com
Received on Thursday, 27 March 2003 12:41:06 GMT

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