Loading ...
Sorry, an error occurred while loading the content.

Re: coloured rectangles

Expand Messages
  • kennethy1 <kennethy1@yahoo.com.au>
    Thanx heaps Eliot! That s a very creative approach... never thought of it. And thanx for the amount of detail you place in your replies. Cheers, Kenneth ...
    Message 1 of 3 , Mar 3, 2003
    • 0 Attachment
      Thanx heaps Eliot! That's a very creative approach... never thought
      of it. And thanx for the amount of detail you place in your replies.


      --- In XSL-FO@yahoogroups.com, "W. Eliot Kimber" <eliot@i...> wrote:
      > kennethy1 wrote:
      > > Hello all! I would like to absolutely-position coloured
      > > anywhere over the body region, then write over the top of them
      > > the dynamic (text) flow. Without using external graphics, how
      > > I do this? I've tried using leaders with a set height/width, but
      > > are rendered on top of my dynamic text.
      > It's not completely clear what effect you're trying to get, but the
      > easiest thing is probably to set the extent of one of the edge
      > to be coincident with the region body--anything you put in this
      > using static-content will be rendered under the region-body.
      > To get rectangles of a specified size use block-container with
      > block-progression-dimension and inline-progression-dimension
      settings, e.g.:
      > <fo:flow flow-name="xsl-region-body">
      > <!-- 1 inch blue box -->
      > <fo:block-container
      > block-progression-dimension="1in"
      > inline-progression-dimension="1in"
      > background-color="blue"
      > absolute-position="absolute"
      > left="2in"
      > top="2in">
      > <fo:block> </fo:block>
      > </fo:block>
      > </fo:flow>
      > Note that the block with a non-break space is not strictly required.
      > Block containers with absolute positioning are positioned relative
      > their containing reference area (the body region in this example).
      > containers establish new reference areas, so you can use nested
      > containers to easily do overlays, such as text on top of graphics
      or one
      > graphic on top of another (such as an SVG defining callouts and
      > on top of a bitmap or some such).
      > Blocks drawn earlier in the area tree should go *under* later
      > Note that unless you are explictly setting page breaks, there will
      be no
      > way to predict reliably what page a given block-container will
      appear on
      > (unless you put them in the static content, in which case they'll
      > on each page the static content applies to).
      > You can also use inline-container to create arbitrarily sized
      > that are inline in a flow of text.
      > Cheers,
      > Eliot
      > --
      > W. Eliot Kimber, eliot@i...
      > Consultant, ISOGEN International
      > 1016 La Posada Dr., Suite 240
      > Austin, TX 78752 Phone: 512.656.4139
    Your message has been successfully submitted and would be delivered to recipients shortly.