Re: [xep-support] Center a table on a page

From: Matthias Born (born@oio.de)
Date: Wed Jun 30 2004 - 08:50:55 PDT

  • Next message: G. Ken Holman: "Re: [xep-support] Center a table on a page"

    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@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
    


    This archive was generated by hypermail 2.1.5 : Wed Jun 30 2004 - 09:06:08 PDT