Question: Style in a Table cell

72 views
Skip to first unread message

Clare

unread,
Nov 14, 2020, 10:38:09 PM11/14/20
to TiddlyWiki

I'm trying to figure out how to get the style to fill the whole cell rather than just highlight the word in the cell. Any advice?

David Gifford

unread,
Nov 15, 2020, 7:16:56 AM11/15/20
to TiddlyWiki
If you mean something like color background for individual cells, no there is not currently a way to do that as there was in TiddlyWiki classic. There are some people working on a new table syntax. Perhaps that will allow individual cell CSS. The only current alternative I know of is using an html table.

Eric Shulman

unread,
Nov 15, 2020, 7:58:40 AM11/15/20
to TiddlyWiki
Although there isn't a syntax to directly specify background colors for individual table cells, you can re-purpose the table header syntax -- "!" -- to accomplish something similar:

<style> .mytable th { background:lightblue; } </style>

|mytable|k
|!foo|bar|
|mumble|frotz|

The "foo" cell in the above example will have a lightblue background.

enjoy,
-e

Clare

unread,
Nov 16, 2020, 3:32:38 AM11/16/20
to TiddlyWiki


Thanks Eric, it worked. Had a brief issue where I put |mytable||k accidently instead of |mytable|k and it was giving me the default grey instead of the color but I figured out my oopsy.
Reply all
Reply to author
Forward
0 new messages