XML technologies / XSL-FO / Reference / Attributes in XSL-FO / display-align
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendation section: 7.14.4
Category: 7.14 Area Alignment Properties
Description
This attribute sets the vertical alignment of content in the marked area.
Values
after | The area’s content is aligned at the bottom. |
auto | If this property is set on a list item (<fo:list-item>) or table cell (<fo:table-cell>) that also has relative-align, the value in <relative-align> determines vertical alignment. Otherwise, the content is aligned at the top (before). |
before | The area’s content is aligned at the top. |
center | The area’s content is centered vertically. |
Inherited: | yes |
Default value: auto
XSL-FO version: 1.0
Allowed in:
<fo:block-container> , <fo:external-graphic> , <fo:inline-container> , <fo:instream-foreign-object> , <fo:region-after> , <fo:region-before> , <fo:region-body> , <fo:region-end> , <fo:region-start> and <fo:table-cell>
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | Y | P | Y | Y | Y |
XSL-FO example:
<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm
0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="26mm 55mm 41mm
55mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:block-container height="45mm" width="45mm" background-color="#F38222" display-align="after" absolute-position="fixed" left="7.5mm" top="10mm">
<fo:block color="white" font-family="Arial Unicode
MS" font-size="10pt">
display-align="after"
</fo:block>
</fo:block-container>
<fo:block-container height="45mm" width="45mm" background-color="#4F491D" display-align="auto" absolute-position="fixed" left="57.5mm" top="10mm">
<fo:block color="white" font-family="Arial Unicode
MS" font-size="10pt">
display-align="auto"
</fo:block>
</fo:block-container>
<fo:block-container height="45mm" width="45mm" background-color="#F38222" display-align="before" absolute-position="fixed" left="107.5mm" top="10mm">
<fo:block color="white" font-family="Arial Unicode
MS" font-size="10pt">
display-align="before"
</fo:block>
</fo:block-container>
<fo:block-container height="45mm" width="45mm" background-color="#4F491D" display-align="center" absolute-position="fixed" left="157.5mm" top="10mm">
<fo:block color="white" font-family="Arial Unicode
MS" font-size="10pt">
display-align="center"
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>In the output:
Excerpt from the W3C Recommendation: