Re: Center block within block?

> 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 UTC