Click to See Complete Forum and Search --> : Image Center issue in IE(7)


stingerman
04-26-2009, 02:46 AM
These pages always look fine in firefox.

However sometimes they do and sometimes they don't in IE.

The big pic is supposed to be centered -- but sometimes it appears to the right and when refreshed sometimes its centered correctly.

Not sure why this would be happening.

Can anybody take a look - Is there some kind of display:block bug in IE?

I ran a validation test and I didnt see anything in particular. Most of the errors were a result of a php script image resize.

Also not sure if it would be a doc type problem?

Thanks.

http://www.cosmicbooknews.com/enlarge/LEPCOVERA

This is the css for the image:

IMG.displayed {
text-align: center;
display: block;
margin-left: auto;
margin-right: auto;
}

stingerman
04-26-2009, 08:47 AM
Doesnt seem to be a problem with the image.

Seems to be a problem with how I have the google ad placed.

Removing it fixes the problem.

stingerman
04-26-2009, 09:05 PM
I solved the problem by putting the ad in a table wrapped by a div.

Seems to work.

<div id="head1">

<table>
<tr>
<td><a href="" title=""><IMG border="0" SRC="/logobl.png" alt=""></a></td>
<td>&nbsp;&nbsp;</td>
<td><?php include etcetc ?></td>
</tr>
</table>

</div>