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

Re: Center block within block?

From: David Tolpin <dvd@renderx.com>
Date: Sun, 27 Jul 2003 20:37:25 +0500 (AMST)
Message-Id: <200307271537.h6RFbPnU090111@adat.davidashen.net>
To: www-xsl-fo@w3.org

> I have a bad feeling that this will turn out to be something I can't 
> do, but here goes... :-/
> 
> I have a block that needs to be centered within an enclosing block.  If 
> I had any way of knowing what the width of the inner block was going to 
> be, I could calculate start-indent and end-indent to "split the 
> difference".  The trouble is, I don't know the width of the inner 
> block, because it's dependent on content.

How happens a block's width in XSL FO is dependent on content? It is almost
impossible, unless it is in a side-float and determines its width, but then it cannot be centered.

David
Received on Sunday, 27 July 2003 11:37:32 GMT

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