W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2011

Re: Two fo:block on the same line

From: Tony Graham <tgraham@mentea.net>
Date: Sun, 7 Aug 2011 09:26:25 +0100 (IST)
Message-ID: <17015.>
To: www-xsl-fo@w3.org
On Sun, August 7, 2011 7:18 am, Mansour Al Akeel wrote:
> I need to align two blocks of text left and right on the same line.
> I don't mean justify the text. I mean have a space between them.
> I think this can be done with tables by using table-cell for the first
> block
> of text, and a second one as a separator, then the third one for the
> text to be on the right side of the page.
> Could this be done without tables ? is there a better way to do it ?

fo:list-block containing a single fo:list-item with one block in the
fo:list-item-label and the other in the fo:list-item-body.

One fo:block containing a fo:float containing the other fo:block.

Two fo:inline-container with fixed width with a fo:leader between them or
with 'text-align="justify"' on their containing fo:block.

Two absolutely-positioned fo:block-container, e.g. inside another
fo:block-container that establishes their ancestor reference area.

Use a two-column layout where every other top-level fo:block has
'span="all"' and your second fo:block has 'break-before="column"' (and/or
the first one has 'break-after="column"').

If those block are all there is on a special page, use a flow-map with
each block directed to a different region.


Tony Graham                                   tgraham@mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming
Received on Sunday, 7 August 2011 08:26:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:36 UTC