[xep-support] Center a table on a page

Matthias Born born at oio.de
Wed Jun 30 08:50:55 PDT 2004


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?
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>
>>>>>    <fo:table-row>
>>>>>      <fo:table-cell/>
>>>>>      <fo:table-cell>
>>>>>
>>>>>        <!-- place table which has to be centered here -->
>>>>>        <fo:table border="thin solid black">
>>>>>          <fo:table-body text-align="center">
>>>>>            <fo:table-row><fo:table-cell><fo:block>Nested table is
>>>>>here</fo:block></fo:table-cell></fo:table-row>
>>>>>          </fo:table-body>
>>>>>        </fo:table>
>>>>>
>>>>>      </fo:table-cell>
>>>>>      <fo:table-cell/>
>>>>>    </fo:table-row>
>>>>>  </fo:table-body>
>>>>></fo:table>
-- 
Matthias Born
Orientation in Objects GmbH
Weinheimer Str. 68
68309 Mannheim
Telefon: +49 (621) 71 83 9 - 0

-------------------
(*) 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