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}"
font-weight="{$font-weight}" padding-left="{$label-padding}{$unit-length}"
	<fo:block font-weight="{$name-font-weight}">
		<xsl:value-of select="$first-name"/>
		<xsl:text> </xsl:text>
		<xsl:value-of select="$last-name"/>
		<xsl:value-of select="$address1"/>
	<xsl:if test="string-length($address1) &gt; 0">
			<xsl:value-of select="$address2"/>
		<xsl:value-of select="$city"/>,
			<xsl:value-of select="$state"/>,
			<xsl:value-of select="$zip"/>
		<xsl:if test="string-length($country) &gt; 0">
				<xsl:value-of select="$country"/>
Ramin Bozorgzadeh
Teledata Communications, Inc
100 Engineers Rd.
Hauppauge, NY 11788
(631) 231-6700 extension 117
Received on Thursday, 27 March 2003 12:41:06 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:57 UTC