DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Setting Table Background color

  • linjinwei

    Setting Table Background color

    Participants 1
    Replies 2
    Last Activity 13 years, 9 months ago

    Hi again.
    This time I need to set a background color for a cell in the table. For example like the image below.

    [img]http://img296.imageshack.us/img296/3089/coloredbgtableik4.jpg[/img]

    I tried using in the ditabase-derived.css:

    [code]
    /* blueBG {*/
    [class~=”hi-d/blueBG”] {
    background-color: #9999ff;
    }
    [/code]
    but it only hightlight the text, not the entire cell of table.

    Any answer for the coding to change table background color?

    Reply

    mag3737

    Reply to: Setting Table Background color

    You might try setting the “blueBG” attribute on the table instead of on the contents inside the cell.  But I'm not sure if this will work — this might be a limitation in XMetaL's CSS support.

    I would assume that getting colours in your output formats is more important, anyway.  As noted in the “indentation” thread, that will involve entirely different stylesheets (and possibly have its own limitations depending on the capabilities of the various tools involved).

    Reply

    linjinwei

    Reply to: Setting Table Background color

    Unfortunately I cannot use your idea of changing in the code to get the background color. It must be done throught UI (clicking and done).

    I think I hav another idea of using codeblock. Will try it out and post back later.

    Reply

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

Lost Your Password?

Products
Downloads
Support