Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Something about image centering
- Steve Greenaway
December 5, 2004, 6:28 pm
rate this thread
<span class="equation"><img.... /></span> should centre an image inside
the containing paragraph/div/whatever with the .equation styled as
text-align= center shouldn't it? It's not working for me and it's
starting to drive me a little bit nuts... Advice would be appreciated.
"I think a good friend would recommend CLR to all his friends."
Re: Something about image centering
No, it shouldn't. Unless you play around with float or display, span
elements are inline and the text-align property doesn't apply to them.
(Since the width property doesn't apply either, and the element shrink
wraps its content - there isn't any margin for centring anyway).
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/
Home is where the ~/.bashrc is