[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: XSL-FO alignment
Subject: Re: XSL-FO alignment
From: Kamal Bhatt <kbhatt@xxxxxxxxx>
Date: Thu, 04 May 2006 12:31:09 +1000
|
G. Ken Holman wrote:
At 2006-05-04 00:09 +1000, Kamal Bhatt wrote:
I have the following XSL-FO script:
(thank you for providing a complete file)
<fo:block font-family="Courier" font-size="10pt"
space-before="6pt"
space-after="6pt" text-align="left"
border-style="solid" border-width="0.25pt"
padding-left="4pt" padding-right="4pt" padding-top="6pt"
padding-bottom="6pt" line-height="15pt">
According to XSL-FO 1.0 Section 5.3.2, your specification above will
draw the border *outside* of the parent boundary limits ... unlike
CSS. This guarantees that the text of the border block lines up with
the text of an adjacent unbordered block. If you wanted the border to
line up with the text, use margin-left="0pt" in addition to your other
properties.
No, I want it outside of the text. I am basing this fo on a windows doc
and that is what we do. On a related note, (and maybe someone here
doesn't know this) am I correct in saying that the way word defines
points, and even cm different to FO and everyone else?
Firstly, I would am still confused about the difference between
space-before and padding-before and padding-top. If someone could
explain
that to me, that would be great.
The space-before= property defines the space between the adjacent
block area and the area's border rectangle (which is the outside edge
of the border).
The padding-before= and padding-top= both specify the distance between
the area's padding rectangle (which is the inside edge of the border)
and the area's content rectangle. The only difference between
padding-before= and padding-top= is that the use of
writing-direction-dependent values of before/after/start/end are
portable across different languages while the CSS heritage
top/bottom/left/right are biased to left-to-right/top-down writing
directions.
So for english it does n't matter what I use, but I should probably use
before/after/start/end? What about space-* vs padding-*?
Both spacing and padding are in play since they define different
concepts.
Secondly, I would like the table aligned with the border of block before
it.
Then add margin-left="0pt" to ensure that the border does not "push
out" such that its context text aligns with the text of neighbouring
blocks.
That sounds like what I want to do.
--
Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.
|
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
RSS 2.0 |
|
Atom 0.3 |
|
|