Re: [xsl] background in block container

Subject: Re: [xsl] background in block container
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Mon, 16 Feb 2004 19:11:44 -0000
Hi Andreas,

Thanks for the response.

I've tried (I think) what you suggested, that is to control the border an
background colour from the page's region-body.

I've tried the following:

<fo:region-body margin-top="2.53968253968254cm"
margin-left="2.87393298059965cm" margin-right="3.02393298059965cm"
margin-bottom="2.53968253968254cm" background-color="rgb(226, 226, 226)"
border-color="rgb(0, 0, 0)" border-style="solid" border-width="1pt" />

This gives me a nice grey background, but it doesn't enclose it in a border.
Have you any idea why?

Also, I would like to be able to control where the borders start (ie not
merely around the margins of the page) eg if the left margin is 3cms from
the left edge of the page, I might want the border and background to start
1cm from the left edge of the page.  I tried adding some padding, but it
seemed to make no difference.

Is there an easy way to achieve this.

TIA

Mark

----- Original Message -----
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, February 16, 2004 6:53 PM
Subject: RE: [xsl] background in block container


> > -----Original Message-----
> > From: Mark Williams
> >
> > I'm trying to achieve a page background with a border and a nice shade
of
> > grey, but for various reasons I need to do it inside of static objects
in
> > region-before.
> >
>
> Hmm. Using Apache FOP, incidentally?
>
> > Is there any way of making the body text show through the block
container
> > whilst assigning a background colour.  I assume not, but thought it
worth
> > asking.
>
> Never mind the question, I think you're going to be fine if you define the
> background-color on the region(s) itself instead of the block-container.
> Leave the borders where they are...
>
> Should do the trick.
>
> Hope this helps!
>
>
> Cheers,
>
> Andreas
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread