This works:

<style>
.indent_field {
margin-left:{{!!indent_amount}}px;
}
</style>

@@.indent_field
<$link><$view field=title /></$link>
@@

Or a variation on Mat solution, with only the style in the macro, not the 
entire element:

\define m-indent_amount()
margin-left:$(v-indent_amount)$px;
\end

<$set name="v-indent_amount" value={{!!indent_amount}}>
<span style=<<m-indent_amount>>>
<$link><$view field=title /></$link>
</span>
</$set>

The second solution allows to put the macro definition in its own global 
macro tiddler, to be usable everywhere.


-- 
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/58176ead-a05a-4c89-9168-0325ab56340e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to