Thank you Jeremy! I wasn't aware a solution this neat and concise existed.
background: url("<<datauri "Tiddler Fishes.svg">>") center center;
>
The above code works well and perfectly fits my use case.
Thank you again.
Best regards,
Hubert
On Sunday, 11 November 2018 17:25:03 UTC, Jeremy Ruston wrote:
>
> Hi Hubert
>
> Try the following in a new tiddler tagged $:/tags/Stylesheet on tw.com:
>
> \rules only filteredtranscludeinline transcludeinline macrodef
> macrocallinline macrocallblock
>
> html body.tc-body {
> background: url("<<datauri "Tiddler Fishes.svg">>") center center;
> }
>
> Best wishes
>
> Jeremy
>
> On Wednesday, October 24, 2018 at 11:03:07 AM UTC+1, Hubert wrote:
>>
>> I'm having a problem showing an SVG image using the CSS content property.
>> The SVG image is a separate tiddler type image/svg+xml and the CSS style
>> is in a separate tiddler type text/css and tagged $:/tags/Stylesheet.
>>
>> Has anyone been successful displaying an image in this way? I'd be
>> grateful if you could show me what's wrong with my syntax:
>>
>> content: url("[[delete.svg]]");
>>
>>
>> Thank you!
>>
>> Best regards,
>> Hubert
>>
>>
>>
--
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/845d99b3-e1ac-492e-a154-7948dca41f72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.