Pages: 1
Print
Author Topic: Setting Table Background color  (Read 2579 times)
linjinwei
Member

Posts: 65


« on: December 20, 2008, 02:50:15 AM »

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



I tried using in the ditabase-derived.css:

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


Any answer for the coding to change table background color?
Logged
mag3737
XMetaL Evangelist
Administrator
Member

Posts: 100


I even use XMetaL to write my business letters.


« Reply #1 on: December 20, 2008, 12:11:20 PM »

You might try setting the "blueBG" attribute on the table <entry> 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).
Logged

Tom Magliery
JustSystems Canada, Inc.
linjinwei
Member

Posts: 65


« Reply #2 on: December 20, 2008, 07:05:11 PM »

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.
Logged
Pages: 1
Print
Jump to:  

email us