[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: FO: block, padding and border

Subject: Re: FO: block, padding and border
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Tue, 18 Nov 2008 18:16:27 +0100 (CET)
Re:  FO: block
"G. Ken Holman" wrote:

> >   Of course, the borders should be aligned.  How would you do
> >that?

> By using space-before= and space-after= for top and bottom, and 
> start-indent= and end-indent= for left and right.

  Thanks for your detailed answer, Ken.  Unfortunately, when I
try the following:

    <fo:block space-before="5pt" start-indent="5pt"
              border="solid 0.5pt">
       Bla bla...

I get the opposite result: the border is moved to the inside of
the block.  Thanks to Vasu, I found the following that solves my

    <fo:block padding-top="5pt" border="solid 0.5pt">
       <fo:inline padding-left="5pt">Bla bla...</fo:inline>

  With this, the border around the block is still aligned with
borders around tables, and the text is 5pt away from the border.
I am not sure this is the right way to go, but it seems clean

  I use FOP 0.95, not sure this has something to do...


Florent Georges

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.