[xep-support] Re: Absolute position relative to container

Kevin Brown kevin at renderx.com
Thu Apr 6 18:25:50 PDT 2017


Perfect.

 

Kevin

 

From: Darren Munt [mailto:darrenm at ardex.com.au] 
Sent: Thursday, April 06, 2017 6:16 PM
To: kevin at renderx.com
Subject: RE: [xep-support] Re: Absolute position relative to container

 

All good, it's working perfectly now.

 

From: Kevin Brown [mailto:kevin at renderx.com] 
Sent: Friday, 7 April 2017 11:15 AM
To: Darren Munt <darrenm at ardex.com.au <mailto:darrenm at ardex.com.au> >;
'RenderX Community Support List' <xep-support at renderx.com
<mailto:xep-support at renderx.com> >
Subject: RE: [xep-support] Re: Absolute position relative to container

 

I would need to see the sample you are formatting. 

 

Kevin

 

From: Darren Munt [mailto:darrenm at ardex.com.au] 
Sent: Thursday, April 06, 2017 6:11 PM
To: kevin at renderx.com <mailto:kevin at renderx.com> ; RenderX Community Support
List <xep-support at renderx.com <mailto:xep-support at renderx.com> >
Subject: RE: [xep-support] Re: Absolute position relative to container

 

OK that got me part way there. However if there is content above the
block-container, it doesn't work:

 



 

But I have worked out that if I put a height on the blue block-container, it
works:

 



 

 

 

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of
Kevin Brown
Sent: Friday, 7 April 2017 4:47 AM
To: 'RenderX Community Support List' <xep-support at renderx.com
<mailto:xep-support at renderx.com> >
Subject: [xep-support] Re: Absolute position relative to container

 

Not sure I get the question, but like this?

        <fo:flow flow-name="xsl-region-body">

            <fo:block-container position="relative">
                <fo:block>Some stuff</fo:block>
                <fo:block-container width="3cm" height="4cm"
position="absolute" top="1cm" left="5cm" background-color="red">
                    <fo:block>
                        Some other stuff
                    </fo:block>
                </fo:block-container>
                <fo:block-container width="3cm" height="4cm"
position="absolute" top="2cm" left="3cm" background-color="green">
                    <fo:block>
                        Some other stuff
                    </fo:block>
                </fo:block-container>
            </fo:block-container>           
        </fo:flow>

 



 

Kevin Brown

(650) 327-1000 Direct

(650) 328-8008 Fax

(925) 395-1772 Mobile

skype:kbrown01

kevin at renderx.com <mailto:kevin at renderx.com> 

sales at renderx.com <mailto:sales at renderx.com> 

http://www.renderx.com <http://www.renderx.com/>  

 

 

 

 

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of
Darren Munt
Sent: Thursday, April 06, 2017 1:27 AM
To: xep-support at renderx.com <mailto:xep-support at renderx.com> 
Subject: [xep-support] Absolute position relative to container

 

I want to align some block-containers within a containing block. I'm not
sure if that is possible, or maybe I need a different document structure.

 

<fo:block>

                Some stuff

                <fo:block-container width="3cm" height="4cm"
position="absolute" top="1cm" left="5cm">

                                Some other stuff

                </fo:block-container>

</fo:block>

 

So what I want is for the block-container to be positioned 1cm from the top
and 5cm from the left of the top left corner of the parent block.

 

When I try this, position is relative to the xsl-region-body.

 

What am I doing wrong? I realise that the container is taken out of the
flow, so this is obviously not the right way to do it.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170406/75a30a05/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 16526 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170406/75a30a05/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 20307 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170406/75a30a05/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 3370 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170406/75a30a05/attachment-0005.png>


More information about the Xep-support mailing list