[TW5] How? @@width for image

49 views
Skip to first unread message

Mat

unread,
May 6, 2015, 1:44:25 AM5/6/15
to tiddl...@googlegroups.com
Can this easily be made to work, i.e using the @@ syntax? I've tried all I can think of, but no result.

@@width:20%; {{$:/core/images/delete-button}}@@


<:-)

PMario

unread,
May 6, 2015, 7:25:39 AM5/6/15
to tiddl...@googlegroups.com
On Wednesday, May 6, 2015 at 7:44:25 AM UTC+2, Mat wrote:
Can this easily be made to work, i.e using the @@ syntax? I've tried all I can think of, but no result.

@@width:20%; {{$:/core/images/delete-button}}@@

imo not with this syntax. TW uses CSS classes to style svgs and you need to use width and height eg:

tiddler tagged $:/tags/Stylesheet

.myClass svg {
  width:20px;
  height:20px;
}

tiddler or macro or whatever creates your image needs to look like this:

<span class="myClass">{{$:/core/images/delete-button}}</span>

hope that helps.
-mario



Mat

unread,
May 6, 2015, 8:54:15 AM5/6/15
to tiddl...@googlegroups.com
hope that helps. 
-mario

In deed it did - thank you Mario!

<:-) 
Reply all
Reply to author
Forward
0 new messages