You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by rajeev nair <ra...@yahoo.com> on 2001/08/27 14:03:21 UTC

Centering fo:table elment

hi all,
how can i align the fo:table elment at center of the
page in xsl-fo.
also how can i give space between two fo:block
elements.
any help will be greately appreciated.
regards
rajiv



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Centering fo:table elment

Posted by Daniel Knapp <sk...@informatik.uni-rostock.de>.
> thanx for ur prompt response.
> whenever i tried using display-align="center" in
> fo:table or fo:table-body element ,the warning
> 'display-align' property ignored is occuring.i'm using
> fop-0.18.1
> .further help expected

On the xml.apache.org web site it doesn't mention "display-align" on the
features-list of FOP, so maybe it isn't implemented, yet. But try the
newer Fop-0.20.1, maybe it works.

Unfortunately the trick putting the whole table in a <fo:block
text-align="center">-element doesn't work.

MfG, Daniel

-- 
Daniel Knapp <da...@informatik.uni-rostock.de>
int a=10000,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5;for(;d=0,
g=c*2;c-=14,printf("%.4d",e+d/a),e=d%a)for(b=c;d+=f[b]*a,f[b]=d%--g,d/=
g--,--b;d*=b);} berechnet Pi auf 800 Stellen genau. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Centering fo:table elment

Posted by rajeev nair <ra...@yahoo.com>.
hello,
thanx for ur prompt response.
whenever i tried using display-align="center" in
fo:table or fo:table-body element ,the warning
'display-align' property ignored is occuring.i'm using
fop-0.18.1
.further help expected
regards
rajiv
--- Nikolai Grigoriev <gr...@renderx.com> wrote:
> > > how can i align the fo:table elment at center of
> the
> > > page in xsl-fo.
> > 
> > use
> > 
> > <fo:table display-align="center">
> 
> This aligns the contents of each table cell within
> the cell. To align 
> the entire table on the page, you will need to
> specify display-align="center"
> on the respective fo:region-body element.
> 
> Regards,
> Nikolai
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-dev-unsubscribe@xml.apache.org
> For additional commands, email:
> fop-dev-help@xml.apache.org
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Centering fo:table elment

Posted by Nikolai Grigoriev <gr...@renderx.com>.
> > how can i align the fo:table elment at center of the
> > page in xsl-fo.
> 
> use
> 
> <fo:table display-align="center">

This aligns the contents of each table cell within the cell. To align 
the entire table on the page, you will need to specify display-align="center"
on the respective fo:region-body element.

Regards,
Nikolai


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Centering fo:table elment

Posted by Max Froumentin <mf...@w3.org>.
You wrote:

> how can i align the fo:table elment at center of the
> page in xsl-fo.

use

<fo:table display-align="center">

> also how can i give space between two fo:block
> elements.

use the margin or space properties. For instance,

<fo:block space-after="1cm">...</fo:block>

Max.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org