Skip to content

Tag Definition: blockValign

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

start

implied

None

stop

implied

None

value

required

None

Can contain
EMPTY

Purpose

This sets how the contents of a block of cells in your table are aligned in the vertical direction. The value can be: TOP, MIDDLE, or BOTTOM, and defaults to BOTTOM.

Check out our docs page on how this works in the open source for reference.

Example usage

We've included a border and span for this example to make it's effects clearer visually when run with rml2pdf

<stylesheet>
    <blockTableStyle id="table1" spaceAfter="0.5 cm">
        <lineStyle kind="BOX" colorName="black"/>
        <blockValign value="MIDDLE"/>
        <blockSpan start="0,0" stop="0,1"/>
    </blockTableStyle>
</stylesheet>
<story>
    <blockTable style="table1">
        <tr><td>Table style example</td><td>Table style example</td></tr>
        <tr><td>Table style example</td></tr>
    </blockTable>
</story>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <stylesheet> ➔ <blockTableStyle> ➔ <blockValign>