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 Roland Lechner <ro...@web.de> on 2002/04/16 16:16:11 UTC

Aligning inline elements was: Re:

Ups, forgot the subject, sorry!

fop-user@xml.apache.org schrieb am 16.04.02:
> Hi all,
> 
> a little problem for me:
> 
> I have to put 2 numbers in a table-cell, they should be separated (the same distance regardless of font-size,...) and mor or less aligned on the right (with an indent).
> 
> If I put two block elements in the cell they are one above (or below) the other, with inline elements aligning just doesn't work to well! Any ideas?!
> 
> It should look something like this:
> 
> |   100   200 |
> |   200   300 |
> 
> with | being the cell border...
> 
> Let's look at my (horrible!) code:
> 
> <fo:table-cell
> border-left-color="black"
> border-top-color="black"
> border-top-width="1pt"
> border-bottom-style="solid"
> border-bottom-width="1pt"
> height="2pt"
> border-right-style="solid"
> border-left-width="1pt"
> border-right-width="1pt"
> border-right-color="black"
> border-left-style="solid"
> border-top-style="solid"
> border-bottom-color="black"
> padding-top="5pt">
> 
> <fo:block font-size="8pt" font-family="Times">
> 
> <fo:inline text-align="end" end-indent="0.5cm">24</fo:inline>
> <fo:inline font-size="8pt" font-family="Times">1,95%</fo:inline>
> 
> </fo:block>
> </fo:table-cell>
> 
> Thanx again!
> 
> Roland
> ________________________________________________________________
> Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
> Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
> 
> 


________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! 
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13



Re: Aligning inline elements was: Re:

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Roland Lechner wrote:
>>I have to put 2 numbers in a table-cell, they should
 >>be separated (the same distance regardless of font-size,...)
 >>and mor or less aligned on the right (with an indent).
>>
>>If I put two block elements in the cell they are one
 >> above (or below) the other, with inline elements
 >> aligning just doesn't work to well! Any ideas?!

Text alignment on inline elements does not really work
in FOP. The usual workaround is to use a table.
Either embed a separate two column table in your
table cell, or make two cells instead of one.

J.Pietschmann