From: Nikolai Grigoriev (firstname.lastname@example.org)
Date: Sat Feb 08 2003 - 09:47:43 PST
> At the moment I see no other way to center a block with an explicit
> width and which is stacked in another block then to generate
> expressions such as:
> margin-left="50% - <width> div 2 - <padding-left>"
As a workaround, you can use a borderless table:
<fo:table table-layout="fixed" table-width="100%">
<fo:block>Your content here</fo:block>
This is 100% compliant FO.
> Therefore, I wonder when the afore-mentioned restriction on expressions
> will be lifted.
Not very soon. As you probably guessed, the current state of expressions
comprises all those that can be calculated _on the source tree_. To extend
expressions further, one should postpone their computation until the width
of the containing area is known. This is hard to combine with acceptable
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to email@example.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
This archive was generated by hypermail 2.1.5 : Sat Feb 08 2003 - 09:42:43 PST