xsl-list
[Top] [All Lists]

Re: [xsl] FO: block, padding and border

2008-11-18 11:21:58
did u give the padding to the inline text in the Block or the <fo:block>??

you should do :
<fo:block>
  <fo:inline padding = "2pt"> text </fo:inline>
</fo:block>


if you give padding to the block , then the block will move..



On Tue, Nov 18, 2008 at 3:58 PM, Florent Georges 
<lists(_at_)fgeorges(_dot_)org> wrote:
 Hi,

 I have a form in FO, which is a sequence of blocks and tables,
each with a border.  Within blocks, I use padding="2pt" to
prevent words to touch the border.  But doing so, the border of
the block is moved by 2pt (to the outside of the block.)

 You can see the following screenshot to see the result:
http://www.fgeorges.org/tmp/fo-block-padding.jpg.

 Of course, the borders should be aligned.  How would you do
that?  I can think about workarounds, like using a table with
one cell instead of a block, but I would like to do it the clean
way...

 Regards,

--
Florent Georges
http://www.fgeorges.org/




























--~------------------------------------------------------------------
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>
--~--





-- 
Vasu Chakkera
Numerical Algorithms Group Ltd.
Oxford
www.vasucv.com

--~------------------------------------------------------------------
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>