xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan O'Keeffe" <jonathan.okee...@log-net.com>
Subject Vertical alignment question
Date Fri, 11 Jan 2002 16:08:09 GMT
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



Mime
View raw message