# Elementname: `Columns`

## Description

Set the widths and other properties of the columns in a table.

Allowed attributes: (none)

Child elements: Column, Loop, Switch

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

### Attributes

### Remarks

The *-widths in the command »Column« allow dynamic cell widths. For that the total width of the table must be set and the attribute (on Table) »stretch« must be set to »max«. The widths of the columns are calculated as follows: first the absolute widths are taken into account. After that, the *-columns are distributed across the remaining space. The numbers before the * denote the fraction of the space. In the example below the third column gets 1/6 of the remaining width, the fourth column get 5/6.

## Example

    <Table>
      <Columns>
        <Column width="14mm" />
        <Column width="2" />
        <Column width="1*" align="right" valign="top" />
        <Column width="5*" />
        <Column width="5mm" backgroundcolor="gray" />
        <Tr>
           ....
        </Tr>
      </Columns>
    </Table>

## See also

Table, Column

# Commands

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

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