|
Subject: [xsl] Re: [FO] Margin when a block breaks over a page From: Vincent Hennebert <vhennebert@xxxxxxxxx> Date: Tue, 19 Aug 2008 15:47:47 +0200 |
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 doesnbt 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] template to group by tags, Martin Honnen | Thread | Re: [xsl] Re: [FO] Margin when a bl, G. Ken Holman |
| Re: [xsl] [FO] Margin when a block , Tony Graham | Date | Re: [xsl] Display count function ou, Sharon_Harris |
| Month |