##### 24.6.3.3 Specifying relative vs. absolute widths for table columns

DITA <simpletable> elements do not have absolute column widths or table widths; all you get are relative column widths. For valid DITA XML, you have to use a PI to set absolute column or table width. However, for <table> elements you can specify either absolute or relative column widths. By default, DITA2Go uses absolute widths.

To specify relative instead of absolute table and column widths for <table> elements:

    [DITAOptions]
    ; TableColsRelative = No (default, in points using pt, in colspec
    ; width attributes) or Yes (in percents using *)
    TableColsRelative = Yes

When TableColsRelative=Yes, for relative widths DITA2Go produces (for example):

    <colspec colnum="1" colname="col1" colwidth="81*" />
    <colspec colnum="2" colname="col2" colwidth="108*" />

Those relative widths (denoted by the *) turn inches into points, resulting in 1.125" = 81pt, and 1.5" = 108pt.

When TableColsRelative=No, DITA2Go produces instead:

    <colspec colnum="1" colname="col1" colwidth="81pt" />
    <colspec colnum="2" colname="col2" colwidth="108pt" />

Previous Topic: 24.6.3.2 Retaining empty paragraph tags in DITA table cells

Next Topic: 24.7 Specifying options for images in DITA XML

Parent Topic: 24.6.3 Configuring DITA table components

Sibling Topics:

24.6.3.1 Omitting ancestries of DITA table components

24.6.3.2 Retaining empty paragraph tags in DITA table cells