Hi Andreas

Andreas Rudolf wrote:
Hi Stuart,
I'm one user of your rock solid asciidoc. But I don't have a google id to login 
into the asciidoc group. So please excuse me if I ask directly. Will be an 
exceptional case.

I tried to set the background-color for a specific table cell, but using 
[,green]#text# only set the color of the font.
Is it possible to set the background-color of a specific cell?

The current color inline attributes only applies to text, setting table cell background color would entail adding color using the AsciiDoc table cell specifiers (http://www.methods.co.nz/asciidoc/userguide.html#X84).

You can do this by defining a table cell style. The following example defines a 'red' cell style and then uses it to color the second cell:


:tabletags-red.bodydata: <td style="background-color:red;">|</td>
:tabledef-default.red-style: tags="red"

|================================== |Normal cell r|Red cell |==================================

I've cc'd this answer to the AsciiDoc list.


Cheers, Stuart


Regards
Andreas


--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to