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

From: Darren Munt <darrenm_at_ADDRESS_REMOVED>
Date: Thu Apr 06 2017 - 18:11:10 PDT

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

[cid:image001.png@01D2AF8F.A9240560]

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

[cid:image002.png@01D2AF8F.A9240560]

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Friday, 7 April 2017 4:47 AM
To: 'RenderX Community Support List' <xep-support@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>

[cid:image003.png@01D2AF8E.ED75E8B0]

Kevin Brown
(650) 327-1000 Direct
(650) 328-8008 Fax
(925) 395-1772 Mobile
skype:kbrown01
kevin@renderx.com<mailto:kevin@renderx.com>
sales@renderx.com<mailto:sales@renderx.com>
http://www.renderx.com<http://www.renderx.com/>

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Darren Munt
Sent: Thursday, April 06, 2017 1:27 AM
To: xep-support@renderx.com<mailto:xep-support@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.

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

image003.png
image001.png
image002.png
Received on Thu Apr 6 18:03:14 2017

This archive was generated by hypermail 2.1.8 : Thu Apr 06 2017 - 18:03:20 PDT