[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: background in block container

Subject: RE: background in block container
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Mon, 16 Feb 2004 20:39:58 +0100
container twist
> -----Original Message-----
> From: Mark Williams
>
> I've tried (I think) what you suggested, that is to control the border an
> background colour from the page's region-body.
>
<snip />
> This gives me a nice grey background, but it doesn't enclose it
> in a border.
> Have you any idea why?

Yup, you're right about the general idea, but IIC, borders are yet
unimplemented for the regions (in FOP that is).

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

So what I actually meant by 'leave the borders where they are' was to leave
them on the block-container in the static content...
>
> 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.
>

... that way this should pose no real problem. You can do the same BTW for
the region-start and region-end to have the background 'extend' beyond the
region-body's boundaries (--and have static-contents in them to add a twist
to the borders)

> Is there an easy way to achieve this.
>

Well, depends on what you call easy, not? ;)

Have fun!

Cheers,

Andreas


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.