Code sample: resizeable DIV element

40 views
Skip to first unread message

Charlie Veniot

unread,
Apr 2, 2021, 4:35:24 PM4/2/21
to TiddlyWiki
As soon as I saw this, it got me wondering: what kind of really useful/practical things can we do with this?

For example:  imagine a "master" tiddler showing "thumbnails" of other tiddlers, and those thumbnails are all resizeable (and the content automagically resizes to scale) so the thumbnails become readable "right there"?

Hmmmm.  The wheels are spinning ...

(Nothing new here.  Sure it has been thought of before.  Just my first time thinking of potential approaches to presenting content.)

From the Resizeable Div tiddler in my (tentatively titled) TiddlyWiki Programming Fundamentals:


<div style="resize:both;overflow:auto;width:4em;height:4em;background-color:yellow;border:1px solid black;min-height:3em;min-width:3em;">
</div>

Cheers !
Reply all
Reply to author
Forward
0 new messages