Background Image - what am I doing wrong?

57 views
Skip to first unread message

Aidan Grey

unread,
Jul 27, 2019, 1:02:49 PM7/27/19
to TiddlyWiki
I ALMOST have it working, but only when I'm in edit mode. What?!

- I Imported an image for a background on tiddlers. I did nothing to it, it's called "old-parchment.jpg" and type is "image/jpeg". no tags or anything.
- I created tidBkgImg tagged with $:/tags/Stylesheet, no type, and this code:

<style>
.tc-tiddler-frame { background-image: url(<<datauri "old-parchment.jpg">>); }
</style>

Background only shows up if I have a tiddler - any tiddler, in edit mode, and then it shows for all tiddlers.  As soon as I leave edit mode, the image disappears, again for all tiddlers.

I can't find another class to use that makes a difference, and I can't find the difference between edit and view mode that will affect the frame.

What am I doing wrong this time?

Thanks,
Aidan

Mark S.

unread,
Jul 27, 2019, 1:45:36 PM7/27/19
to TiddlyWiki
You don't need to wrap the style in style tags when used in a stylesheet. I think you'll find it works once you remove those.

Aidan Grey

unread,
Jul 27, 2019, 2:32:08 PM7/27/19
to tiddl...@googlegroups.com
Oy. Yes, that was it. Thanks man

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/95a7e2aa-2888-4c28-8709-90e6fb9b2927%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages