<top> (Table Cell Top Margin Exception)

This element specifies the amount of space which shall be left between the top extent of the cell contents and the top border of a specific table cell within a table. This setting shall override the table cell top margin definition specified by the <top> element contained within the table properties (§2.4.72).

This value is specified in the units applied via its @type attribute. Any width value of @type pct or auto for this element shall be ignored.

If omitted, then this table cell shall use the bottom cell margins defined in the <top> element contained within the table properties (§2.4.72).

example:

This text fills the extents of the cell.

So does this

The first cell in the table would be specified using the following WordprocessingML:

<w:tc>
  <w:tcPr>
    <w:tcMar>
      <w:top w:w="288" w:type="dxa" />
    </w:tcMar>
  </w:tcPr>
</w:tc>

The first cell in this table has an exception applied to the table cell top cell margin setting it to 288 twentieths of a point (0.2 inches). ]

Parent Elements

<tcMar>2.4.65)

Attributes

Description

<type> (Table Width Type)

Specifies the units of the width property being defined by the parent element’s @w attribute. This property is used to define various properties of a table, including: cell spacing, preferred width, and table margins.

If this attribute is omitted, then its value shall be assumed to be dxa (twentieths of a point).

<w:bottom ... w:type="dxa" />

This @type shall therefore be used to interpret the width specified in the @w attribute as a value in twentieths of a point. ]

The possible values for this attribute are defined by the ST_TblWidth simple type (§2.18.97).

<w> (Table Width Value)

Specifies the value of the width property being defined by the parent element. This property is used to define various properties of a table, including: cell spacing, preferred widths, and table margins.

If this attribute is omitted, then its value shall be assumed to be 0.

<w:bottom w:w="302" w:type="dxa" />

The value in the @w attribute shall therefore be used to determine the width being specified in the context of the units specified in the @type attribute. In this case, the @type is twentieths of a point (dxa), so the width is 302 twentieths of a point (.2097 inches). ]

The possible values for this attribute are defined by the ST_DecimalNumber simple type (§2.18.16).

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

<complexType name="CT_TblWidth">
	<attribute name="w" type="ST_DecimalNumber"/>
	<attribute name="type" type="ST_TblWidth"/>
</complexType>