DocumentID: ECMA-376/Part4/2.4.80
Title: ECMA-376, Part4: 2.4.80 vAlign (Table Cell Vertical Alignment)
Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006
Warning: Coverted to HTML format by a script known to have bugs

Navigation:

2.4.80 vAlign (Table Cell Vertical Alignment)

This element specifies the vertical alignment for text within the current table cell. The vertical alignment of this text is determined by the value of the val attribute.

[Example: Consider a table with a single cell with text vertically aligned to the bottom of the cell:

R1C1

This requirement would be specified using the following WordprocessingML:

<w:tc>

  <w:tcPr>

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

  </w:tcPr>

  <w:r>

    <w:t>R1C1</w:t>

  </w:r>

</w:tc>

The vAlign element specifies the vertical alignment of the cell contents, in the case, the bottom of the table cell. end example]

Parent Elements

tcPr (§2.7.5.8); tcPr (§2.4.66); tcPr (§2.7.5.9); tcPr (§2.4.67)

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 type (§2.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>


Converted to HTML format by ooxmlspec2html 0.1, a Perl script provided by OpenISO.org.