ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > XSL FO > General > Vertical alignment

Rendered image | PDF document
Use attribute display-align to set the vertical alignment.


Source
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
     <fo:layout-master-set>
          <fo:simple-page-master master-name="simple">
               <fo:region-body/>
          </fo:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-reference="simple">
          <fo:flow flow-name="xsl-region-body">
               <fo:table>
                    <fo:table-column column-width="50mm"/>
                    <fo:table-column column-width="50mm"/>
                    <fo:table-body>
                         <fo:table-row>
                              <fo:table-cell display-align="after">
                                   <fo:block>down</fo:block>
                              </fo:table-cell>
                              <fo:table-cell>
                                   <fo:block> aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa aaa </fo:block>
                              </fo:table-cell>
                         </fo:table-row>
                    </fo:table-body>
               </fo:table>
          </fo:flow>
     </fo:page-sequence>
</fo:root>