<td> element
The <td>
element represents a cell of a table. Each row can have one or more cells.
Attributes
Attribute | Description |
left | The left offset of the header in pixels. |
top | The top offset of the header in pixels. |
width | The width of the header in pixels. |
height | The height of the header in pixels. |
styles | Contains a semicolon delimited list of name:value pair style information values. |
Styles
Node | Description |
verticalAlignment | Contains the vertical alignment to apply to text within the cell, can be one of the following:- Top- Center- Bottom |
width | Contains the width of the cell, unit of measure is stored in widthType. |
widthType | Indicates the how width is applied, can be one of the following:- Auto- Percentage- Point |
colSpan | Contains how many cells this cell should span across. |
rowSpan | Contains how may rows this cell should span across. |
backgroundColor | Contains the background color for the cell, in HTML format. |
borderLeft | Contains details (width, color, style) for the left border. |
borderRight | Contains details (width, color, style) for the right border. |
borderTop | Contains details (width, color, style) for the top border. |
borderBottom | Contains details (width, color, style) for the bottom border. |
wrap | Indicates where word wrap is supported on the cell. |
margins | Contains the margins, in points, for the cell. |
borderInternalVert | Contains details (width, color, style) for the internal vertical borders. |
borderInternalHorz | Contains details (width, color, style) for the internal horizontal borders. |
Children
Node | Description |
<p> | A cell can contain zero or more <p> elements. |