Hello -

I have a question about vertical alignment within a block.  I have a
fixed-height block with a variable number of short lines, and I want the
first (n - 1) lines grouped together at the top of the block, and line (n)
aligned to the bottom of the block - something like this:

--------------- Top of block
Line 1
Line 2
Line 3


Line 4
--------------- Bottom of block

This is produced with FO something like this

<fo:block height="30mm" id="OUTER">
    <fo:block id="A">
        <fo:block>Line 1</fo:block>
        <fo:block>Line 2</fo:block>
        <fo:block>Line 3</fo:block>
    </fo:block>
    <fo:block id="B">
        <fo:block>Line 4</fo:block>
    </fo:block>
</fo:block>

(the id attributes are only for illustration here).  Basically I want block
A to be aligned to the top of block OUTER, and block B to be aligned to the
bottom of block OUTER.  This is subject to the constraint that block A (and
also probably eventually block B) could have variable numbers of rows in
them - otherwise I would just use fixed-height rows in a table, or
something like that.

Thanks in advance for any assistance.

- Jonathan


Reply via email to