Adam Augusta wrote:

The compliance page gives every indication that using the display-align
property of a block-container to vertically center output should work. Why isn't the output text vertically centered in the 4"x5" area?


FOP 0.20.5

<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block-container border-style="solid" display-align="center" wrap-option="no-wrap" text-align="center" position="absolute" top="1in" left="2in" height="5in" width="4in">
<fo:block>The quick brown fox jumps over</fo:block>
<fo:block space-before="10pt">the lazy dog.</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>

Hi Adam,

this should work. The only thing that strikes me as slightly unusual is that youve specified wrap-option="no-wrap". Try taking this off. If this fails, try getting rid of the nested blocks and just put the text directly below the block-container. I realise this is far from ideal, but display-align is not fully implemented. One work around would be to put a single column/single row table in there and specify display-align="centre" on the table-cell.

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to