logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: center table horizontally (space-start): msg#00028

Subject: Re: center table horizontally (space-start)

At 2002-07-16 15:22 +0200, Schäffler, Markus SFR wrote:
My intension is to center
the table horizontally. But the space-start.optimum or the
space-start.minimum parameter doesn't have any effect. I can't put the table
into a block-container, because I wan't to span the table over multiple
pages. Any suggestions?

The way to centre a <table> is to put it in a <table-and-caption> and use text-align="center". A working example is below.

I hope this helps.

.......... Ken


<table-and-caption text-align="center">
  <table border="solid" border-collapse="collapse" table-layout="fixed">
    <table-column column-width="2cm"/>
    <table-column column-width="2cm"/>
    <table-body>
      <table-row>
        <table-cell><block>a</block></table-cell>
        <table-cell><block>b</block></table-cell>
      </table-row>
    </table-body>
  </table>
</table-and-caption>

--
Upcoming: 3-days XSLT/XPath and/or 2-days XSL-FO:Sep 30-Oct 4,2002

G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                       Definitive XSLT and XPath
ISBN 1-894049-08-X   Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1                Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books (electronic, printed),
articles, training (instructor-live,Internet-live,web/CD,licensed)
Next public training:                 2002-08-05,26,27,09-30,10-03




<Prev in Thread] Current Thread [Next in Thread>