You could give your table a class and then assign css to it right
below using the tiddler macro.
|myTableClass|k
|my|Table|Contents|
<<tiddler {{
setStyleSheet(
".myTableClass .someSubClass{style:property;}"+
".myTableClass .anotherSubClass{style:property;}",
"mySpecialTableStyles"
);
"";}}>>
Essentially, setStyleSheet is a native tiddlywiki function to apply
css style rules once tiddlywiki is loaded, whereas the css style rules
to be apply is the first parameter and the second parameter
corresponds to the id of the style object addded to the DOM (Document
Object Model).
As the tiddler macro evaluates its parameters, you can invoke any code
as given via the first parameter, just make sure you pass an empty
string as the last value, which will evaluate whatever code is in
between, yet ask the tiddler macro to get the contents of tiddler
"empty string"... which of course there is none. As in the example,
you can easily define multiple rows by using concatenation via the "+"
operator.
If you are unfamiliar with javascript basics... I would not recommend
this technique...
But, on the other hand, you could always put your style definitions in
your "StyleSheet" tiddler, which I strongly recommend if you have
multiple tables of that kind!
Best wishes,
Tobias.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki?hl=en.