# Elementname: `Td`

CSS name: td

## Description

Td wraps a table row, just like HTML.

Allowed attributes: align, border-bottom, border-bottom-color, border-left, border-left-color, border-right, border-right-color, border-top, border-top-color, class, colspan, backgroundcolor, id, padding, padding-bottom, padding-left, padding-right, padding-top, rowspan, valign

Child elements: Barcode, Box, Copy-of, ForAll, Image, Loop, Paragraph, Switch, Table, VSpace

Parent elements: Case, ForAll, Loop, Otherwise, SetVariable, Tr, Until, While

### Attributes

align (optional, CSS property: text-align)

  Horizontal alignment of the cell contents. Defaults to left.

  left: | The contents is left aligned (ragged right). This is the default.
  right: | The contents of the cell is right aligend.
  center: | The contents of the cell is aligned at the center, with ragged right and left margin.
  justify: | Justified text with straight margins.

backgroundcolor (text, optional, CSS property: background-color)

  The name of the background color (if the cell should get a background).

border-bottom (length, optional, CSS property: border-bottom-width)

  The width (tickness) of the bottom border. The border is inside the cell.

border-bottom-color (text, optional, CSS property: border-bottom-color)

  The color of the bottom border.

border-left (length, optional, CSS property: border-left-width)

  The width (tickness) of the left border. The border is inside the cell.

border-left-color (text, optional, CSS property: border-left-color)

  The color of the left border.

border-right (length, optional, CSS property: border-right-width)

  The width (tickness) of the right border. The border is inside the cell.

border-right-color (text, optional, CSS property: border-right-color)

  The color of the left border.

border-top (length, optional, CSS property: border-top-width)

  The width (tickness) of the top border. The border is inside the cell.

border-top-color (text, optional, CSS property: border-top-color)

  The color of the top border.

class (text, optional)

  The css class to be used for formatting the table cell (experimental).

colspan (number, optional)

  The number of columns this cell spans. Defaults to 1.

id (text, optional)

  CSS id for this table cell.

padding (length, optional, CSS property: padding)

  Shorthand for setting padding-top and the other values with this length.

padding-bottom (length, optional, CSS property: padding-bottom)

  Set the inner distance (width between contents and the border) to the bottom edge.

padding-left (length, optional, CSS property: padding-left)

  Set the inner distance (width between contents and the border) to the left edge.

padding-right (length, optional, CSS property: padding-right)

  Set the inner distance (width between contents and the border) to the right edge.

padding-top (length, optional, CSS property: padding-top)

  Set the inner distance (width between contents and the border) to the top edge.

rowspan (number, optional)

  The number of rows for this cell. Defaults to 1.

valign (optional, CSS property: vertical-align)

  The vertical alignment of the cell.

  top: | The contents is aligend at the top edge of the cell.
  middle: | The contents is vertically centered.
  bottom: | The contents is aligend at the bottom edge of the 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 Barcode and Image.

## Example

## See also

Table, Tr, Paragraph, Image, Stylesheet

# Commands

- A
- Action
- AddToList
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Color
- Column
- Columns
- Contents
- Copy-of
- DefineColor
- DefineFontfamily
- DefineTextformat
- Element
- EmptyLine
- Fontface
- ForAll
- Frame
- Grid
- Group
- HSpace
- Hyphenation
- I
- Image
- Include
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- Ol
- Options
- Otherwise
- Output
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- Sequence
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

Version: 2.2.0 | Start page | Command reference | Other language: German