I'm using this class:
and this code for the image (inside a div):
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?
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?