Hi Pascal, Great, thanks. Georg Datterl ------ Kontakt ------ Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert
Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult & Content GmbH: www.willmycc.de -----Ursprüngliche Nachricht----- Von: Pascal Sancho [mailto:[email protected]] Gesendet: Dienstag, 15. Dezember 2009 15:17 An: [email protected] Betreff: Re: vertical character alignment Hi Georg, What you need here is relative-position (to put your page-number "below" its theorical position). Unfortunately, this is not yet implemented. However, you can mimic it by adding padding on the fo:block: <fo:block padding-top="0.1em" padding-bottom="-0.1em"> <fo:page-number/> </fo:block> HTH, Pascal Georg Datterl a écrit : > Hi everybody, > > Today I'm here with a fairly simple problem: I want a page number with a > border: > > <fo:block background-color="orange" border-style="solid" border-color="black" > border-width="0.25pt" line-height="7.9pt" font-size="7pt"> > <fo:page-number background-color="pink"/> </fo:block> > > The number should be centered in the block. But when I use > vertical-alignment="middle", although the page-number block is indeed > centered, it looks off, since the page number text is not center in the > block. There's space reserved for line-depth(?), which page numbers don't > use. I guess the solution is somewhere in baseline-adjust and baseline-align, > but I can't find the correct combination. Does anybody know which attibutes I > have to set to center the pagenumber optically in its parent block? > > Regards, > > Georg Datterl --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
