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

RE: centering text irrespective of page size

From: Victor Vishnyakov <tch_@mail.ru>
Date: Thu, 23 Oct 2003 17:00:48 +0300
To: "'karthikeyan.balasubramanian'" <karthikeyan.balasubramanian@aspiresys.com>, <www-xsl-fo@w3.org>
Message-ID: <001301c3996e$11f22500$2500a8c0@ISLC.local>

7.29.22 "vertical-align"

CSS2 Definition:
Value: 	baseline | middle | sub | super | text-top | text-bottom |
<percentage> | <length> | top | bottom | inherit
Initial: 	baseline
Applies to: 	inline-level and 'table-cell' elements



"vertical-align" is not applicable to fo:block !!!

> -----Original Message-----
> From: www-xsl-fo-request@w3.org 
> [mailto:www-xsl-fo-request@w3.org] On Behalf Of 
> karthikeyan.balasubramanian
> Sent: Thursday, October 23, 2003 4:36 PM
> To: www-xsl-fo@w3.org
> Subject: Re: centering text irrespective of page size
> 
> 
> 
> Hi,
> 
>   I also tried this but its not working :(
> 
> <fo:block font-family="Courier" font-size="11pt" 
> vertical-align="middle">
> 
> <xsl:value-of select="TITLE"/>
> 
> </fo:block>
> 
>   Have a great day.
> 
> Karthikeyan B
> ----- Original Message -----
> From: "karthikeyan.balasubramanian" 
> <karthikeyan.balasubramanian@aspiresys.com>
> To: <www-xsl-fo@w3.org>
> Sent: Thursday, October 23, 2003 6:27 PM
> Subject: centering text irrespective of page size
> 
> 
> > Hi,
> >
> >   How do I center a text both horizontally and vertically 
> irespective 
> > of page size.
> >
> >   I dont want to use fo:table any other ideas?
> >
> >   right now i am using this
> >
> > <fo:block margin-top="200px" margin-right="200px" 
> > margin-bottom="200px" margin-left="200px" font-family="Courier" 
> > font-size="11pt">  <xsl:value-of select="TITLE"/> </fo:block>
> >
> >   Have a great day.
> >
> > Karthikeyan.
> >
> 
> 
> 
Received on Thursday, 23 October 2003 10:00:02 GMT

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