]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fix centering table example not to use empty table-cells which is forbidden. Use...
authorJeremias Maerki <jeremias@apache.org>
Tue, 16 Aug 2005 08:07:35 +0000 (08:07 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 16 Aug 2005 08:07:35 +0000 (08:07 +0000)
Added note about right-aligning tables.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@232959 13f79535-47bb-0310-9956-ffa450edef68

src/documentation/content/xdocs/fo.xml

index d1cd9d02a69dd400e31da34b8881e23eb6d24666..4601988d354d0aab0a19ef7e8dad518252f40907 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" standalone="no"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-2005 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -175,11 +175,9 @@ Here is a small, self-contained document centering an image on a page:
         <fo:table-column column-width="proportional-column-width(1)"/>
         <fo:table-body>
           <fo:table-row>
-            <fo:table-cell/>
-            <fo:table-cell>
+            <fo:table-cell column-number="2">
               <fo:block>foo</fo:block>
             </fo:table-cell>
-            <fo:table-cell/>
           </fo:table-row>
         </fo:table-body>
       </fo:table>
@@ -190,6 +188,15 @@ Here is a small, self-contained document centering an image on a page:
           If your table is more complicated, or if defining borders on individual cells becomes too much work, use the code above and nest your table within the middle cell.
         </p>
       </section>
+      <section id="fo-right-align-table-horizon">
+        <title>Right-Aligning (Tables)</title>
+        <p>
+          To right-align a table, you can use the same approach as above for centering tables. 
+          Just remove the last table-column element which causes all the left-over space not 
+          used by the columns with a fixed column-width to be assigned to the first column which
+          effectively right-aligns the table.
+        </p>
+      </section>
       <section id="fo-oddeven">
         <title>Recto/Verso Static Content Differences</title>
         <p>