Hi Danielo

Here's how to do it:

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

body {
  background: url(<<datauri "Motovun Jack.svg">>);
}

It will only work for tiddlers containing full SVG image files (ie ones
with the type image/svg+xml that contain a "<?xml version="1.0"?>"
declaration and a doctype), and not SVG fragments such as TiddlyWiki's
button icons.

Best wishes

Jeremy



On Thu, Feb 20, 2014 at 12:59 PM, Danielo Rodríguez <[email protected]>wrote:

> Hello All.
>
> I want to use some images inside certain divs as background. I want to use
> the embedded svg images in my css. I tried almost everything with no luck.
> I tried with {{image}} [[image]],imagename... etc
> I even tried with
> url(data:image/svg;base64,veryLongblablablaoftheSvgImage).
>
> No luck.
> Any idea?
>
> --
> 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.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Jeremy Ruston
mailto:[email protected]

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to