GetSimple Support Forum
QUESTION How to center image - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: QUESTION How to center image (/showthread.php?tid=7816)



How to center image - marlib - 2016-01-05

Hi,
how can I center image. In image properties there is only option Right and left in Alignment.
Thanks for info.

Libor Marek


[SOLVED] - How to center image - jwzumwalt - 2016-01-06

I do this using CSS.

In the style sheet I have
.center_image { text-align:center; margin:auto; padding:0px; }

From the page source code tab...
<img class="center_image" border=1 alt="image" width="600" />

of course you can also enter in the source code tab...
<center><img...></center>

-------------

And just to be complete, I also have a CSS definition for caption text...
p.caption { color: #dd9; text-align:center; font-style:italic;  margin: 0px; margin-bottom: 15px; }

The caption text would be used like this...
<p class=caption>Fig-3: Hello world!</p>