Subject: Re: [xsl] background in block container From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 17 Feb 2004 08:00:56 -0500 |
Still having problems with backgrounds in block-containers.
The following works as I would expect it to, placing the border on the region-body's left and top margins and at the require width and height:
<fo:flow flow-name="xsl-region-body"> <fo:block-container position="absolute" left="0cm" top="0cm" width="19cm" height="27cm" background-color="rgb(192, 192, 192)" border-color="rgb(0, 0, 0)" border-style="solid" border-width="1pt"> <fo:block>  </fo:block> </fo:block-container>
However, if instead of width and height I specify right and bottom coordinates of 0cms, I thought that, in accordanc with the spec I would get a borders that would correspond precisely with all of the region-body's margins (Eg the spec says of the right property: "This property specifies how far a box's right margin edge is offset to the left of the right edge of the box's containing block").
<fo:block-container position="absolute" left="0cm" top="0cm" background-color="rgb(192, 192, 192)" border-color="rgb(0, 0, 0)" border-style="solid" border-width="1pt" right="0cm" bottom="0cm"> <fo:block>hello</fo:block> </fo:block-container>
Instead I get a miniscule block in the top left corner.
Can anyone please tell me why?
How do I draw a block-container with reference to the bottom and right margins?
-- Public courses: upcoming world tour of hands-on XSL training events Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong: 2004-05-17 Germany: 2004-05-24 England: 2004-06-07 World-wide on-site corporate, government & user group XML training!
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] background in block conta, Mark Williams | Thread | Re: [xsl] background in block conta, G. Ken Holman |
RE: [xsl] generate output html from, SHEIKH Sajjad | Date | RE: [xsl] Error displaying image wi, Kielen, Agnes |
Month |