Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION How to center image
#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


Messages In This Thread
How to center image - by marlib - 2016-01-05, 23:31:26
[SOLVED] - How to center image - by jwzumwalt - 2016-01-06, 00:19:47



Users browsing this thread: 1 Guest(s)