[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

vAlign (Vertical Text Alignment on Page)

This element specifies the vertical alignment for text on pages in the current section, relative to the top and bottom margins in the main document story on each page.

[Example: Consider a section used as a title page on which text shall be vertically centered. In order to center the text vertically on the page, the following WordprocessingML is used:

<w:sectPr>

<w:vAlign w:val="center" />
</w:sectPr>

The vAlign value of center specifies that text shall be laid out in the center of the top and bottom text margins for all pages in this section. end example]

Parent Elements

sectPr2.6.17); sectPr2.6.18); sectPr2.6.19)

 

Attributes

Description

val (Vertical Alignment Setting)

Specifies the vertical alignment for text between the top and bottom margins of the parent container (page or table cell).

 

[Example: Consider a region where the text shall be vertically centered in the parent element. This would require a val value of center, in order to specify that all justification vertically shall be centered relative to the parent. For a section, this setting would be specified as follows:

 

<w:vAlign w:val="center" />

 

The val attribute of center specifies that the content is centered relative to its container (in this case, the page). end example]

 

The possible values for this attribute are defined by the ST_VerticalJc simple type2.18.111).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_VerticalJc">

   <attribute name="val" type="ST_VerticalJc" use="required"/>

</complexType>