You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Philippe Pithon <pp...@sigal.fr> on 2002/03/27 16:58:34 UTC

column-width automatic ?

Is there a means to calculate in automatic the width of columns following
the contents?


Re: column-width automatic ?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Philippe Pithon wrote:
> Is there a means to calculate in automatic the width of columns following
> the contents?
> 

Table layout "auto" is not implemented. In FOP 0.20.3, you
have either use fixed column width:
   <fo:table table-layout="fixed">
      <fo:table-column column-width="30mm"/>
      <fo:table-column column-width="72em"/>
     ...
or use expressions with proportional-column-width():
   <fo:table table-layout="fixed" width="100mm">
      <fo:table-column column-width="proportional-column-width(1)"/>
      <fo:table-column column-width="30mm+proportional-column-width(1)"/>

J.Pietschmann