You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ries Spruit <rs...@spruit-it.nl> on 2002/11/18 14:05:29 UTC

Alignment question

Hello,

Im a trying to achieve something like this:

------------------------------------------------------------------------
----------
|This is price text in a normal paragraph
$ 250,00|
|
|
|
|     

or 

------------------------------------------------------------------------
----------
|This is a very long price text which will force the price to the next
line but  |
|it should still be on the right.
$ 250,00|

>From this element structure:

<priceText>
  <description>This is a price text in a normal paragraph</description>
  <price>$ 250,00</price>
</priceText>

 
The trick is that I want to allow the description to be as long as
necessary. The price should be appended to the description but aligned
to the right of the block that the priceText element is used in. 
 
Does anyone know of anyway of doing this without tables?
 
Kind regards,
 
Ries Spruit
 

Re: Alignment question

Posted by Keiron Liddle <ke...@aftexsw.com>.
Hi,

This could be done with fo:leader with space.
You can use the default lengths which will exapnd to fill the space.

I'm not sure if this is implemented properly yet.


On Mon, 2002-11-18 at 14:05, Ries Spruit wrote:
> Hello,
> 
> Im a trying to achieve something like this:
> 
> ------------------------------------------------------------------------
> ----------
> |This is price text in a normal paragraph
> $ 250,00|
> |
> |
> |
> |     
> 
> or 
> 
> ------------------------------------------------------------------------
> ----------
> |This is a very long price text which will force the price to the next
> line but  |
> |it should still be on the right.
> $ 250,00|
> 
> >From this element structure:
> 
> <priceText>
>   <description>This is a price text in a normal paragraph</description>
>   <price>$ 250,00</price>
> </priceText>
> 
>  
> The trick is that I want to allow the description to be as long as
> necessary. The price should be appended to the description but aligned
> to the right of the block that the priceText element is used in. 
>  
> Does anyone know of anyway of doing this without tables?
>  
> Kind regards,
>  
> Ries Spruit
>