Hi Mat,

\define datauri(title)
<$macrocall $name="makedatauri" type={{$title$!!type}} text={{$title$}}/>
\end

div.tc-tagged-cat{
background: url(<<datauri "Motovun Jack.svg">>);
}


Birthe


On Friday, August 28, 2015 at 11:01:25 PM UTC+2, Mat wrote:
>
> Using the tc-tagged-<tagname> 
> <http://tiddlywiki.com/#How%20to%20apply%20custom%20styles%20by%20tag> 
> technique you can style tiddlers individually.
>
> But how do I set an image that I have as a tiddler, e.g Motovun Jack.svg 
> <http://tiddlywiki.com/#Motovun%20Jack.svg>, to be the background in some 
> other tiddler?
>
> The doc link above gives example:
>
> background-image: url(./tardis_back.svg);
>
> but this path is not relevant in this case and merely writing the name of 
> the image tiddler does not work.
>
> Assuming image tiddlers that are local (and work, i.e you do see the 
> image), is there a difference in the above syntax depending on file types 
> (png, svg...)
>
> <:-)
>
>  
>
>

-- 
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ea70f6b-ebe3-43d0-99ef-a8fd5f2e0c5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to