DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Table width with CALS_table_auto_layout = true

  • gcrews

    Table width with CALS_table_auto_layout = true

    Participants 0
    Replies 1
    Last Activity 7 years, 2 months ago

    I enabled the CALS_table_auto_layout to try and make them act like they do in HTML. Some writers were having issues with some text being cut off. It also looked weird with tables being 100% and really large with little text. With CALS_table_auto_layout turned on though, seems to make table editing even more ugly.

    HTML tables seem to resize based on the content with no line wrapping unless 100% width is reached. With CALS_table_auto_layout turned on in Xmetal, it seems to be choosing an arbitrary max size of like 350 pixels for the max width unless you force it out with a long line of non-breaking text. Is there a way in the CSS to specify that the table should go to 100% width or someething? Or is this something that can't be done, just like the horizontal scroll bar not having a clue how wide the page actually is? I have tried the following with no results.

    [code][class~=”topic/table”] {
    display: block;
    width: 100%;
    max-width: 900px;
    }
    [class~=”topic/entry”] {
    display: block;
    width: 100%;
    max-width: 900px;
    }[/code]

    Reply

    Derek Read

    Reply to: Table width with CALS_table_auto_layout = true

    You can't fix this with CSS. You will also probably see different behaviour for these three CALS tables “setups”:
    1. All columns are proportional width.
    2. All columns are fixed width.
    3. Some columns fixed and some columns proportional.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support