Block width

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 UTC