Skip to content

Td

Td wraps a table cell, just like HTML.

Child elements

Bookmark, Box, ForAll, HTML, Image, Loop, Ol, Paragraph, SlateContents, Switch, Table, Ul, Value

Parent elements

Case, ForAll, Loop, Otherwise, Tr, Until, While

Attributes

align (optional)
Horizontal alignment of the cell contents. Overrides the alignment set on the column.
left
The contents is aligned at the left.
center
The contents is centered.
right
The contents is aligned at the right.
justify
The contents is justified.
class (text, optional)
The css class to be used for formatting the table cell.
colspan (number, optional)
The number of columns for this cell. Defaults to 1.
id (text, optional)
CSS id for this table cell.
rowspan (number, optional)
The number of rows for this cell. Defaults to 1.
style (text, optional)
CSS style for this table cell.

Remarks

The child elements of the table cells are either block objects that start a new line or inline objects that are placed horizontally next to each other (from left to right) until the width of the table cell forces a line break. Block objects are Paragraph, Table and Box, inline objects are Image.

Example

The following example places a background text behind the Td cell.


<Record match="data">
   <PlaceObject>
     <Table stretch="max">
       <Columns>
         <Column width="5cm"/>
       </Columns>
       <Tr>
         <Td>
           <Paragraph><Value>A wonderful serenity has taken possession of my entire soul,
             like these sweet mornings of spring which I enjoy with my whole heart.</Value>
           </Paragraph>
         </Td>
       </Tr>
     </Table>
   </PlaceObject>
</Record>

See also