|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: background in block container
> -----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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








