PDA

View Full Version : <td align="center"> not working in IE


steadicamop
03-26-2007, 07:54 PM
This is frustrating as hell, I can't get my forum logo to center - it's fine in FF but in IE it just won't centre, using different placements of "center" in the <td> or <div> tags.

I've done a quick search but nothing obvious sticks out, I have two questions:

1) Here is the code I'm using :
<td align="center" valign="top" width="700"><a href=""><img src="$stylevar[imgdir_misc]/logo.jpg" width="700" border="0"></a></td>

2) Why does IE suck so much?

Cheers

Jase

sinisterpain
03-26-2007, 09:55 PM
I am assuming your using this in a table.
Not sure why you have a width of 700 in <td>
Try this

<td valign="top" align="center"><a href=""><img src="$stylevar[imgdir_misc]/logo.jpg" width="700" border="0"></a></td>

Blaine0002
03-27-2007, 01:21 PM
if you are not using your a href tag i would reccommend deleting it

steadicamop
03-27-2007, 07:50 PM
I am assuming your using this in a table.
Not sure why you have a width of 700 in <td>
Try this

<td valign="top" align="center"><a href=""><img src="$stylevar[imgdir_misc]/logo.jpg" width="700" border="0"></a></td>


Perfect - that did it, thanks - no idea why it was something so darn simple!