Hi,

relative-align only applies to table-cells and list-item if i understand it correct.

Hm, seems as if we need an extension for baseline placing. Something like first-baseline-margin.
Baseline placing seems common to me for designers.

Greetings,

Bernd Köster

Am 16.02.2012 09:17, schrieb Pascal Sancho:
Hi,

If IIUC, what you need is the property 'relative-align' ([1] XSL-FO REC
1.1, §7.14.6).
Unfortunately, this is not implemented in FOP ([2] FOP compliance page).
AFAIK, the only workaround is the one you describe: playing with
margin-before (or padding|space -before).

[1] http://www.w3.org/TR/xsl/#relative-align
[2]
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-relative-align

Le 14/02/2012 13:22, Bernd Koester a écrit :
Hello,


the designers responsible for a corporate design placed the first line
of block on a baseline position.

The main text starts at 50 mm (baseline) from top has a font-height of
10pt and a line-height of 14pt.
The sidebar starts at 50 mm (baseline) from top has a font-height of
7.5pt and a line-height of 10pt.

The only way I found was starting both regions at 45mm and then adding a
calculated margin-top on both
blocks. This has to be calculated for each font.

Do you know a better way to place the first baseline of a region on a
absolute position?

Greetings,

Bernd Köster


--
Bernd Köster                                             BuE Bildung und
Fon: +49-251-5203-602                   EDV-Dienstleistungskonzepte GmbH
Fax: +49-251-5203-605                        E-Mail: [email protected]
Bismarckallee 1                                            48151 Münster

*************************************************
BuE Bildung- und EDV-Dienstleistungskonzepte GmbH

Theaterwall 32
26122 Oldenburg
Telefon: +49 441 232-260
E-Mail: [email protected]

Vertretungsberechtigte Geschäftsführer:
Manfred Kater, Klaus Higgen

Registergericht: Amtsgericht Oldenburg
Registernummer: HRB 5639


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to