On Wednesday, July 19, 2017 at 2:03:15 PM UTC-7, Vayu Asura wrote:
The thing is I can't center smaller images within the modal body, it is always alingned left. Not sure which rule to edit and what to add for the center alignment.
The trick is to apply "margin:auto" to the img element... and it only takes ONE line of CSS!!
Simply create a tiddler, tagged with $:/tags/Stylesheet, containing:
.tc-modal-body img { display:block;margin:auto; }
Tested and verified:
2) press the "Open demo modal" button... note that MotovunJack image is NOT centered
3) create the stylesheet tiddler as described above
4) press the "Open demo modal" button again.... MotovunJack image is now centered.
Q.E.D
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas" (tm)
InsideTiddlyWiki: The Missing Manuals