I don't know if it would help but I split that up.  I use padding-top,
padding-bottom, padding-left, padding-right.
I don't know how the borders would look since I never draw anything from
the block-container, and I tell it where to put all my output with
position="absolute", so if I want a border around something I use a
separate block tag with it's own container.
 

-----Original Message-----
From: Ognjen Blagojevic [mailto:[email protected]] 
Sent: Monday, August 30, 2010 8:06 AM
To: [email protected]
Subject: Unwanted padding when nesting block inside block-container

Hi,

I have very simple example where I nest block inside block-container. I
set both paddings and margins to 0. I am confused since unexplained
padding (left and right) appears inside block-container.

I would expect that borders are one next to another but this is not the
case. Top and bottom borders are, but left and right are not.

Am I missing something really obvious?

Tested with fop 0.95 and 1.0, Windows XP SP3, Java 1.6.

Full example below:

=====
<?xml version="1.0" encoding="utf-8"?>
<root xmlns="http://www.w3.org/1999/XSL/Format";>

<layout-master-set>
   <simple-page-master master-name="first" page-height="29.7cm" 
page-width="21cm" margin="2.5cm">
     <region-body></region-body>
   </simple-page-master>
</layout-master-set>

  <page-sequence master-reference="first">
    <flow flow-name="xsl-region-body">

      <block-container text-align="left" border="0.2cm solid black"
          width="10cm" padding="0" margin="0">

        <block padding="0" margin="0" border="0.4cm solid red">
          test text test text test text test text test text test
          test text test text test text test text test text test
          test text test text test text test text test text test
        </block>

      </block-container>

    </flow>
  </page-sequence>
</root>
-----


Regards,
Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to