Internet explorer refusing to center image...

Soldato
Joined
1 Jul 2007
Posts
21,889
Location
Various
I'm using this class:
Code:
IMG.center { display: block; margin-left:auto; margin-right: auto; }

and this code for the image (inside a div):
Code:
<img src="writing.png" width="463" height="84" IMG class="center" />

It works fine with Opera, Firefox and Chrome, but always floats to the left in IE. I've tried a few things such as changing it to inline, and changing the class to a normal one rather than an IMG one, but neither have worked (and have both caused considerable frustration!).

Any other ideas?
 
Back
Top Bottom