Hi Vincent

Many thanks for your guidance.

I have tried with one surrounding block-container, which looks to be
working OK.  If I then place that within a table or alongside other
non-positioned block-containers it does not work.

I will need to test this some more and will come back with my findings

Kind regards
 
Stuart Scott    

-----Original Message-----
From: Vincent Hennebert [mailto:[email protected]] 
Sent: 15 February 2010 11:01
To: [email protected]
Subject: Re: Flowing absolute positioned block-containers


Hi Stuart,

Just enclose your construct in another fo:block-container and that
should do it.

Absolute positioning is done WRT the nearest ancestor 'reference area',
which fo:block-container appears to generate. If you put your block
containers as direct children of fo:flow, they will be positioned within
the page. If you enclose them with a non absolutely-positioned
fo:block-container, they will be placed within that block-container,
which will itself flow on the page.

HTH,
Vincent


Stuart Scott wrote:
> Sorry, the end of the sentence should have read:
>  
> This relies heavily on positioning within the parent.  However, I need

> this to move depending on other content down the page and possibly 
> onto the next page as necessary.  I have tried placing this within a 
> table but it obviously does not move as the position is absolute.  I 
> have tried using absolute-position="static" but then I lose the 
> ability to specify the dimensions of the block, plus I could not get 
> it to work.
> 
>       -----Original Message-----
>       From: Stuart Scott 
>       Sent: 12 February 2010 11:11
>       To: [email protected]
>       Subject: Flowing absolute positioned block-containers
>       
>       
>       The following code (which has been cut down to use as an
> example) uses two circles onto a block container to create the 
> illusion of a table with space between the two circles (see attached):
>        
>         <fo:block-container absolute-position="absolute" left="0.8cm" 
> top="1cm" width="17cm" height="1.3cm" background-color="red">
>          <fo:block font-family="Helvetica"
> font-size="6">&#160;</fo:block>      
>         </fo:block-container>
>         <fo:block-container absolute-position="absolute" left="0.2cm"
> top="0.56cm">  
>          <fo:block font-family="Helvetica" font-size="11"
> font-weight="bold" color="#0A3548">
>           <fo:instream-foreign-object content-height="5.2em"> 
>               <svg:svg xmlns:svg="http://www.w3.org/2000/svg";
> height="500" width="500" viewBox="-50 -50 100 100">
>                <svg:circle r="50" style="fill:white; stroke:none"/>
>               </svg:svg> 
>              </fo:instream-foreign-object>
>             </fo:block>     
>         </fo:block-container>
>         <fo:block-container absolute-position="absolute" left="0.2cm"
> top="0.6cm">  
>          <fo:block font-family="Helvetica" font-size="11"
> font-weight="bold" color="#0A3548">
>          <fo:instream-foreign-object content-height="5em"> 
>             <svg:svg xmlns:svg="http://www.w3.org/2000/svg";
> height="500" width="500" viewBox="-50 -50 100 100">
>              <svg:circle r="50" style="fill:red; stroke:none"/>
>             </svg:svg> 
>            </fo:instream-foreign-object>
>           </fo:block>     
>          </fo:block-container>
>        
>       This relies heavily on positioning within the parent.  However,
I 
> need this to move depending on other content down the page and 
> possibly onto the next page as necessary.  I have tried placing this 
> within a table but it obviously does not move as the position is 
> absolute.  I have tried
>        
>       Can anyone tell me if this is the best way of achieving this and

> indeed if this is possible?
>        
>       I am currently using FOP 0.93 and can't upgrade at this time.
>        
>       Kind regards
>        
>       Stuart Scott
>       For email disclaimer details please click or visit - 
> http://www.countrywideplc.co.uk/disclaimer
> 
> 

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