This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: limit fo:block width to contents
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 17 Apr 2002 02:37:17 +0200
- Subject: Re: [xsl] limit fo:block width to contents
- References: <1018816697.3cb9e8b9ed78c@jordyn.codenoevil.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
David B. Bitton wrote:
> How can I limit the width of a fo:block to its content and not the width of its
> parent area? Currently my fo:block stretches the width of the page, as does
> it's border. I just want it to be the width of content text, as with the
> border.
A block will always fill the reference area,
minus margins and indents.
I suppose your text is only one line, otherwise
it wouldn't make much sense. You could try to
put your text in a fo:inline and set the border
there. (unfortunately, FOP doesn't implement this),
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list