<div id="imageonly"> foo </div>
<style>
#imageonly { background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/confectionary.png");
}
</style>
--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/55fbf748-4124-465b-bfcb-4ef653519805%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm guessing that the double slash in the URL is being interpreted as the start of an italic run. Try putting the styles in their own style sheet, and include a \rules line to restrict the parsers.
You are aware, that everybody, who uses your link will also use your bandwidth, that you have to pay for. ... Assuming the image link belongs to you, and the image has an open license.
On 13 Sep 2018, at 16:11, Mat <matia...@gmail.com> wrote:IMO this should work also as a styleblock so I'll make an issue unless you object
\define styles()
#imageonly { background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/confectionary.png");}
\end
<div id="imageonly"> foo </div><style>
<$text text=<<styles>>/></style>
We could perhaps encapsulate that approach into a <<styles>> macro that rolled everything together.
Would it not make more sense with a styles widget to make it equivalent to the styles html tag?
<:-)--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/354c87dc-b654-426c-8504-3b5e2a18e051%40googlegroups.com.
PMario wrote:You are aware, that everybody, who uses your link will also use your bandwidth, that you have to pay for. ... Assuming the image link belongs to you, and the image has an open license.I had not considered bandwidth costs but I'd say it's an assumed cost when things are put up on the web.
But image rights is another issue.
In the demo I used totally arbitrary imges just to get linking to work at all.
We could perhaps encapsulate that approach into a <<styles>> macro that rolled everything together.