how to center an image?

92 views
Skip to first unread message

seven smith

unread,
Mar 20, 2021, 3:03:15 AM3/20/21
to TiddlyWiki


How do you center a single image in a tiddler?  (while the rest of the text is left aligned). Only managed to find entries for text and tables when it came to center alignment.

Thank you for your time.

Mat

unread,
Mar 20, 2021, 4:34:15 AM3/20/21
to TiddlyWiki
You need to rely on CSS for this. Here's a comprehensive guide. Here is one method:

<div class="aaa">
[img [Motovun Jack.jpg]]
</div>

<style>
.aaa {text-align:center}
</style>

<:-)

seven smith

unread,
Mar 20, 2021, 5:04:54 AM3/20/21
to TiddlyWiki
Thanks a lot Mat! :)

Mohammad Rahmani

unread,
Mar 20, 2021, 9:42:01 AM3/20/21
to tiddl...@googlegroups.com
If you can use Shiraz, it has ready classes and you can use a wealth of macros to insert images with caption, overlays, ....




Best wishes
Mohammad


On Sat, Mar 20, 2021 at 10:33 AM seven smith <sevensa...@gmail.com> wrote:


How do you center a single image in a tiddler?  (while the rest of the text is left aligned). Only managed to find entries for text and tables when it came to center alignment.

Thank you for your time.

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/03e65333-0c60-42fc-a1a8-851145cba51an%40googlegroups.com.

seven smith

unread,
Mar 20, 2021, 10:30:48 AM3/20/21
to TiddlyWiki
thanks! will try out Shiraz :)
Reply all
Reply to author
Forward
0 new messages