Web Hosting Talk







View Full Version : img centering in IE


bambinou
03-05-2010, 12:17 PM
Hi,


I am having a very stupid problem but just cannot find the answer.

I have this code:
<br>
<td style="padding-left:200px;">
<a href="/artist_open_account.php?form_id=22" class="verd10pxblack">
<img src="images/website_join.png" alt="Why should your website? Click here to find out" border="0" align="Top" />
<tr>
<img src="images/ArrowLeftGreengl.gif" style="float: right; margin-bottom: -100px; padding-top: 30px" />
</td>
</a>
<tr>
///////////////unable to center this picture in IE///////////////
<td width="550" height="480">
<div style="text-align:-moz-center;">
<img src="Members.jpg" width="550" height="480" />
</div>
///////////////unable to center this picture in IE///////////////
</td>
</tr>



Where you see the comments:
///////////////unable to center this picture in IE///////////////

I have a problem right there, in Firefox this picture is well centered while in IE the picture shows on the left side of the screen.


Any idea why please?


Regards,


BamBam

bambinou
03-05-2010, 12:38 PM
it is ok guys, I have just worked it out.
I have replaced
<td width="550" height="480">

by

<td style="padding-left:0px;">