Hi fopper,

considering the following code:


<fo:block-container height="4.233333332275mm" width="30.0mm" top="15.0mm"
left="30.0mm" 
      position="absolute" line-height="12.0pt" border-width="0.05mm"
border-style="solid"          
      border-color="black" background-color="red">
              <fo:block>Hello</fo:block>
</fo:block-container>

<fo:block-container height="4.233333332275mm" width="30.0mm" top="19.22mm"
left="40.0mm" 
      position="absolute" line-height="12.0pt" border-width="0.05mm"
border-style="solid" 
      border-color="blue" background-color="green">
            <fo:block>World</fo:block>
</fo:block-container>



There are two things of which I expected a different representation:

1. If you examine the border of the two block-containers in the resulting
PDF document you will realize that the background is actually larger than the
border.  Is that the proper behaviour??
I need to exactly put a block-container under the other. The result is that
the background of one block-container always hides a bit of the border of
another container. The only workaround i found is to set the background-color to
"transparent", which works fine as long as you need no background-color of
course.
Is my XSL-FO inappropriately, or what's to correct solution to the problem ?

2. As you can see in the PDF document the text is always on the very top of
the block-container? What's the best solution to make the text appear in the
middle (vertically) of the block-container?


Any suggestions will be highly appreciated.


Thanks,
Markus
Schäffler


--------------------------------------------------------------------------------------------------------------------
I attached a complete (ready to transform) XSL-FO file which contains the
above block-containers and shows the
problems.
--------------------------------------------------------------------------------------------------------------------

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="first" page-height="297.0mm" page-width="210.0mm">
			<fo:region-body region-name="xsl-region-body"/>
		</fo:simple-page-master>
		<fo:page-sequence-master master-name="psmA">
			<fo:repeatable-page-master-alternatives maximum-repeats="no-limit">
				<fo:conditional-page-master-reference master-reference="first" page-position="any" blank-or-not-blank="any" odd-or-even="any"/>
			</fo:repeatable-page-master-alternatives>
		</fo:page-sequence-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="psmA">
		<fo:flow flow-name="xsl-region-body">
			<fo:block-container height="4.233333332275mm" width="30.0mm" top="15.0mm" left="30.0mm" position="absolute" line-height="12.0pt" border-width="0.05mm" border-style="solid" border-color="black" background-color="red">
				<fo:block>Hello</fo:block>
			</fo:block-container>
			<fo:block-container height="4.233333332275mm" width="30.0mm" top="19.22mm" left="40.0mm" position="absolute" line-height="12.0pt" border-width="0.05mm" border-style="solid" border-color="blue" background-color="green">
				<fo:block>World</fo:block>
			</fo:block-container>
		</fo:flow>
	</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to