[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: background in block container
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: 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
|
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
|