W3C home > Mailing lists > Public > www-xsl-fo@w3.org > May 2002

Block width

From: Ruane, Conleth <Conleth.Ruane@Compaq.com>
Date: Wed, 29 May 2002 07:34:59 -0400 (EDT)
Message-ID: <D0156F649002864DA26F7E1EE64A3E4E13D89A@demexc02.emea.cpqcorp.net>
To: <www-xsl-fo@w3.org>




Hi all.

The following code (used as a header for a block of text) produces a light grey block across the page

<fo:block line-height="24pt" background-color="lightgrey" border-style="solid" border-width="2pt">
	<fo:inline font-weight="bold" background-color="grey">Bla Bla Bla</fo:inline>
</fo:block>

I would expect the following to produce a block 40 mm wide to the left of the page (which is what I would like) but the results are the same as the code above.

<fo:block width="40mm" line-height="24pt" background-color="lightgrey" border-style="solid" border-width="2pt">
	<fo:inline font-weight="bold" background-color="grey">Bla Bla Bla</fo:inline>
</fo:block>

Is this a limitation of fop 0.20.3 or am I doing something wrong. 
I've tried experimenting with 'absolute-position' and the 'right' attribute and various other methods to achive the desired effect but to no avail.

Has anyone got any ideas.
Received on Friday, 31 May 2002 11:03:50 GMT

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