On Sunday, April 10, 2016 at 8:41:56 PM UTC-7, Dave wrote:
>
> I'd like to have either an image, or different color or texture in the 
> tiddler background (independent of the main background),
> preferrably on a tiddler by tiddler basis (i.e. based on the tag of the 
> tiddler), or if that doesn't work, all tiddlers.
>
> Is this possible?  I was surprised to come up empty on a search for 
> "tiddler background image"
>

You can define a ".tc-tagged-..." class to set the background CSS 
attributes.  For example, create a tiddler, tagged with $:/tags/Stylesheet, 
containing:

.tc-tagged-jack {
    background-image: url(<<datauri "Motovun Jack.jpg">>);
}

and then create a tiddler tagged with "jack".  This tiddler will 
automatically get a class of "tc-tagged-jack" applied to it by the TWCore 
and, due to the CSS rule defined above, the tiddler's background will show 
"Motovun Jack.jpg".... Q.E.D.

enjoy,
-e



-- 
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/c3ad5b9e-10ae-400a-976b-682d63f55bb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to