Wordprocessing Tables
A floating table is a table which is not part of the main text flow in the document but is instead absolutely positioned with a specific size and position relative to non-frame content in the document. A floating table is specified with the <w:tblpPr> element within the <w:tblPr> element.
Note: Positioning of the table is relative to its top-left corner. Anchors (e.g., margin, page, or text) are specified in attributes (tblpX and tblpY), from which measurements (also specified in attributes) for placement of the table are specified. Distance from surrounding text can also be specified in other attributes.
Attributes:
The attributes are:
Attribute | Description |
---|---|
horzAnchor | Specifies the horizontal anchor or the base object from which the horizontal positioning in the tblpX or tblpXSpec attribute should be determined. Possible values are:
If omitted, the value is assumed to be page. |
vertAnchor | Specifies the vertical anchor or the base object from which the vertical positioning in the tblpY attribute should be determined. Possible values are:
If omitted, the value is assumed to be page. |
tblpX | Specifies an absolute horizontal position for the table, relative to the horzAnchor anchor. The value is in twentieths of a point. Note that the value can be negative, in which case the table is positioned before the anchor object in the direction of horizontal text flow. If tblpXSpec is also specified, then the tblpX attribute is ignored. If the attribute is omitted, the value is assumed to be zero. |
tblpXSpec | Specifies a relative horizontal position for the table, relative to the horzAnchor attribute. This will supersede the tblpX attribute. Possible values are:
|
tblpY | Specifies an absolute vertical position for the table, relative to the vertAnchor anchor. The value is in twentieths of a point. Note that the value can be negative, in which case the table is positioned before the anchor object in the direction of vertical text flow. If tblpYSpec is also specified, then the tblpX attribute is ignored. If the attribute is omitted, the value is assumed to be zero. |
tblpYSpec | Specifies a relative vertical position for the table, relative to the vertAnchor attribute. This will supersede the tblpY attribute. Possible values are:
|
bottomFromText | Specifies the minimun distance to be maintained between the table and the top of text in the paragraph below the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero. |
topFromText | Specifies the minimun distance to be maintained between the table and the bottom edge of text in the paragraph above the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero. |
leftFromText | Specifies the minimun distance to be maintained between the table and the edge of text in the paragraph to the left of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero. |
rightFromText | Specifies the minimun distance to be maintained between the table and the edge of text in the paragraph to the right of the table. The value is in twentieths of a point. If omitted, the value is assumed to be zero. |
Since floating tables are outside of the normal flow of text and can be postiioned absolutely, the potential exists for multiple floating tables to overlap. However, overlapping can be prevented with the <w:tblOverlap> element within the <w:tblPr> element. This element specifies whether the table allows other floating tables to overlap it.
<w:tblOverlap> has just one attribute, val, with the following possible values:
- never - the parent table cannot be displayed where it would overlap with another floating table
- overlap - the parent table can be displayed where it overlaps another floating table
Overlapping allowed
Overlapping not allowed
Related CSS property:
Aspects of the OOXML floating table can be replicated with CSS, but with severe limitations. Tables can be positioned using the position property, but then the table is removed from the flow of content and overlapping may occur. A table can be made to float left or right relative to its containing block using the float property, but then specific or absolute positioning is not available.
And so it is with our own past. It is a labor in vain to attempt to recapture it: all the efforts of our intellect must prove futile. The past is hidden somewhere outside the realm, beyond the reach of intellect, in some material object (in the sensation which that material object will give us) which we do not suspect.
AAA | BBB | CCC |
DDD | EEE | FFF |
GGG | HHH | III |
JJJ | KKK | LLL |