[xep-support] Center a table on a page

G. Ken Holman gkholman at CraneSoftwrights.com
Wed Jun 30 09:25:32 PDT 2004


At 2004-06-30 17:50 +0200, Matthias Born wrote:
>Hello Alexander,
>the example works, but the with of the centered table is static with 
>1/3-rd of the page-width, isn't it?

You've missed the fact that the middle column does *not* have a width 
specification, so is as wide as the table.  The proportions of "1" on each 
side effect the centring.

I hope this helps.

............... Ken

>is there a way to make it dynamic?
>
>>>>>>You can center your table by wrapping it in another table like this:
>>>>>>
>>>>>><fo:table width="100%">
>>>>>>  <fo:table-column column-width="proportional-column-width(1)"/>
>>>>>>  <fo:table-column/>
>>>>>>  <fo:table-column column-width="proportional-column-width(1)"/>
>>>>>>  <fo:table-body>



--
Public training 3 days XSLT & 2 days XSL-FO: Phoenix,AZ 2004-08-23
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list