Recently I have switched from TiddlyWiki Classic to TiddlyWiki 5. Now it 
has become complicated to color individual table cells. I have found this 
workaround (somewhere in this newsgroup):

<html><style>
/* compensating the cell padding */
.cell { margin:-1px -7px; padding:1px 7px; }
.positive { background-color:#afa; }
.negative { background-color:#faa; }
</style></html>

| | manual |h
| A | <div class="cell negative">-</div> |
| B | <div class="cell positive">+</div> |

This still requires a lot of typing. So I tried creating a macro for that:

\define pos() <div class="cell positive">+</div>

| | manual | macro |h
| A | <div class="cell negative">-</div> | - |
| B | <div class="cell positive">+</div> | <<pos>> |

But this doesn't work. The lower right table cell stays empty. What am I 
doing wrong? Is it possible to create a macro containing HTML at all?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e65ea24d-0e8c-4462-b948-d6e9a953778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to