GetSimple Support Forum

Full Version: How to center image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
how can I center image. In image properties there is only option Right and left in Alignment.
Thanks for info.

Libor Marek
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>