You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Juergen Lippold <jl...@unilog.de> on 2002/06/10 09:57:04 UTC

margin-top of a block in a table-cell

Hello,

I have got a table with labels. For the labels I want to put in a text with a margin to the top and to the left.
The margin-left value is working all right but the margin-top doesn't do anything. Is this a real bug or is it my fault?
With the padding-top attribute I can reach that there is a margin to the top. Whats the difference between the padding and the margin attribute? Whats the definition when to use what attribute?

Thanks 

Juergen Lippold


..
 <fo:table-row height="4.0cm">
    <fo:table-cell padding-top="0.8cm">
       <fo:block hyphenate="true" language="de" margin-left="0.8cm" margin-right="0.8cm">
           <fo:block>
              Anton Donaudampfschifffahrtskapitaensadjutantenmuetzentraeger 
          </fo:block>
          <fo:block>
             Carnebe-Street 2423    
          </fo:block>
       </fo:block>
   </fo:table-cell>
..


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


Re: margin-top of a block in a table-cell

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Juergen Lippold wrote:
> I have got a table with labels. For the labels I want to put in a text
 > with a margin to the top and to the left.
> The margin-left value is working all right but the margin-top doesn't
 > do anything. Is this a real bug or is it my fault?

Use space-before.

> With the padding-top attribute I can reach that there is a margin to
 > the top. Whats the difference between the padding and the margin
 > attribute?
Padding doesn't work. Margins work...marginally.

 > Whats the definition when to use what attribute?

Trial and error, I'd say. Read the source. FOP has still a lot
of deficiencies.

J.Pietschmann


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