xsl-list
[Top] [All Lists]

Re: How to Align Text in the Page Header?

2003-01-10 12:11:40
Mete Kural wrote:
Hello,

I'm trying to align the text in the page header. There
are two pieces of text that need to go to the header:
chapter name and page number. I do this using markers.
I want to put both of these pieces of text on the same
line in the page header. I want to align the chapter
name to the left and the page number to the right. How
can I do this?

This is an FAQ and is also covered in the spec itself.

The trick is to use the text-align-last="justify" value on the block, with an auto-length leader between them. You can also use a table, which is more appropriate if you have multi-line items that need to be pushed to the edges of the header or footer.

<fo:block
    text-align-last="justify">
  <fo:retrieve-marker class="title"/>
  <fo:leader leader-pattern="space"/>
  <fo:page-number/>
</fo:block>

Cheers,

E.
--
W. Eliot Kimber, eliot(_at_)isogen(_dot_)com
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>