xsl-list
[Top] [All Lists]

[xsl] Re: [FO] Margin when a block breaks over a page

2008-08-19 08:48:25
Hi,

Kamal Bhatt wrote:
Hi,
I want to ensure that when a block breaks on a new page, the top of the 
content has a certain amount of spacing before it, how can I do this?

You can use the padding-before property:
    <fo:block padding-before.length="20pt"
      padding-before.conditionality="retain">
      Block content...
    </fo:block>

Note that you will also get the space on the first page where the block
appears; if the block doesn’t have any border you can counteract that by
setting a negative space-before. Contrary to space-before,
padding-before, if it is set to "retain", applies to every page on which
the block appears.

But maybe what you really want can be achieved in a different way, in
which case a small illustration can help us understand your need.


I have tried using space-before and and played with margins, but to no 
avail (that said, I am using FOP which hasn't got full space-before 
support yet). I cannot put the margin at the top of the region body 
because I have a background image.

HTH,
Vincent

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>