PDA

View Full Version : IE incorrectly positioning pictures in tables


samr
07-24-2006, 06:42 PM
hey,
I've come across a quite annoying bug in IE & was wondering if anyone could shed some light on why it's happening for me.

http://www.bath.ac.uk/~sr235/TEMP/committee.php

this page displays fine in Opera and Firefox, but in IE, on initial load the pictures are all very slightly higher than they are meant to be, but if you go away from the page then click back, all the pictures will be showing, but they will all have moved up and to the left. On a different part of the site I have a phpbb forum, and on that the pictures are all displayed very randomly, some not even in the correct table cells!

thanks for any suggestions as to why it's doing this,
Sam

zealotgi
07-24-2006, 08:12 PM
It may have to do with the whitespace. IE has a problem with that.

So if you have...

<td>
<img src="whatever.jpg">
</td>

You may have to make it into

<td><img src="whatever.jpg"></td>

In order for it to work.

samr
07-24-2006, 08:29 PM
Thanks for the suggestion, but all of the pictures are done in the style you said that they should be, ie <td ...><a ...><img ... /></a></td>
I've also tried making all the <td> a single line (even the ones with just text) but that has made no difference...
Sam

samr
07-26-2006, 10:14 AM
I've found that if I add another div to the page, the problem get worse, and IE does not even show the pictures originally except for the last one, so I think the problem must be somehting to do with them, but I still have no idea what is actually causing it! does anyone have any more suggestions or will I have to change the layout to a more table based one to get round this?
Sam