Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION How to center image
#1
Hi,
how can I center image. In image properties there is only option Right and left in Alignment.
Thanks for info.

Libor Marek
Reply
#2
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>
Thanks,
jwzumwalt
(\__/)
(='.'=)
(")_(")
Reply




Users browsing this thread: 1 Guest(s)