- From: G. Ken Holman <gkholman@cranesoftwrights.com>
- Date: Tue, 16 Jul 2002 10:03:34 -0500
- To: "Mailing List XSL-FO (E-Mail)" <www-xsl-fo@w3.org>
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@CraneSoftwrights.com 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
Received on Tuesday, 16 July 2002 11:03:43 UTC