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 Francisco García Leal <fg...@corpme.es> on 2003/06/13 14:04:22 UTC

text align on the left in a table-cell

Hello.
 
  I have a table and I would like to align the text on the left, and
then I use the text-aling property with “left” value:
 
<fo:table>
         <fo:table-column column-width="2.5cm"/>
         <fo:table-column column-width="5.2cm"/>
              <fo:table-header>
                    <fo:table-row>
                          <fo:table-cell  border="0.5pt solid"
padding="2pt">
                             <fo:block text-align="left "
space-after="5pt"> Registro</fo:block>
                           </fo:table-cell>
 ………..
 
   but I get the text in the center with spaces on the left.
 
 
   I have another problem, if I have long text in the body:
<fo:table-cell  border="0.5pt solid" padding="2pt">
<fo:block font-weight="normal" text-align="left "
wrap-option="no-wrap"><xsl:value-of select="Registro"/>
                                                          </fo:block>
   
 
  I get the text out of the cell.
 
 
  Thanks in advance.
 
  Francisco.

Re: text align on the left in a table-cell

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Francisco García Leal wrote:

> Hello.
>  
>   I have a table and I would like to align the text on the left, and
> then I use the text-aling property with “left” value:
>  
> <fo:table>
>          <fo:table-column column-width="2.5cm"/>
>          <fo:table-column column-width="5.2cm"/>
>               <fo:table-header>
>                     <fo:table-row>
>                           <fo:table-cell  border="0.5pt solid"
> padding="2pt">
>                              <fo:block text-align="left "
> space-after="5pt"> Registro</fo:block>
>                            </fo:table-cell>
>  ………..
>  
>    but I get the text in the center with spaces on the left.
>  
>  
>    I have another problem, if I have long text in the body:
> <fo:table-cell  border="0.5pt solid" padding="2pt">
> <fo:block font-weight="normal" text-align="left "
> wrap-option="no-wrap"><xsl:value-of select="Registro"/>
>                                                           </fo:block>
>    
>  
>   I get the text out of the cell.
>  
>  
>   Thanks in advance.
>  
>   Francisco.
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: text align on the left in a table-cell

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Francisco García Leal wrote:
>                              <fo:block text-align="left "
> space-after="5pt"> Registro</fo:block>
>                            </fo:table-cell>

Try text-align="start".
>    I have another problem, if I have long text in the body:
...
>   I get the text out of the cell.

See
  http://xml.apache.org/fop/faq.html#cells-overflow

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org