Loading ...
Sorry, an error occurred while loading the content.
 

Re: [XSL-FO] table align center

Expand Messages
  • Chris Bowditch
    ... I realised that I made a couple of mistakes in my sample: width on should have been column-width and the middle should
    Message 1 of 5 , Sep 3 3:10 AM
      Chris Bowditch wrote:

      > carlos müller wrote:
      >
      > > How Can I align a table at center horizontally? I don´t know the size of
      > > her
      > > in design time.
      >
      > To horizontally centre a table, place it inside an outer table like this:
      >
      > <fo:table table-layout="fixed">
      > <fo:table-column width="proportional-column-width(1)"/>
      > <fo:table-column width="proportional-column-width(1)"/>
      > <fo:table-column width="proportional-column-width(1)"/>
      > <fo:table-body>
      > <fo:table-row>
      > <fo:table-cell>
      > </fo:table-cell>
      > <fo:table-cell>
      > <!-- place your table here -->
      > </fo:table-cell>
      > <fo:table-cell>
      > </fo:table-cell>
      > </fo:table-row>
      > </fo:table-body>
      > </fo:table>

      I realised that I made a couple of mistakes in my sample:

      width on <fo:table-column> should have been column-width

      and the middle <fo:table-column> should not have a column-width specified to
      allow the column to be big enough for the inner table.

      Chris
    Your message has been successfully submitted and would be delivered to recipients shortly.