Been beating my head against the wall for a couple of days with this one…
I want to style individual Tiddlers with a background image. No problem if I specifically declare it within the Tiddler itself as:
< style >
< div class=“tidframe” style=“background-image: url(‘https://i.imgur.com/ubqmGsP.jpg’);” >
< /style >
Or within my Stylesheet (using a Tag as a trigger):
/* Custom Tiddler Background, Based on Tag */
div.tc-tagged-Christmas {
background-image: url(“http://i.imgur.com/D3HOBmh.jpg”);
border-radius: 10px;
}
But what I really want to do is have a field (“tidbg” in this case), and store the location of a local background image in it, then have it picked up and displayed in the Tiddler.
Something like this:
< div class="tidframe" style="background-image: url({{!!tidbg}});" >
I already do this with the ‘img’ tag:
< div class="imgcent">< img src={{!!previmg}} >< /div >
but I cannot seem to find a syntax that will work with background-image
Any help greatly appreciated