...

View Full Version : Centering an image problems IE6 vs FF



singy
02-22-2008, 04:51 PM
Hi Everyone,

Im trying to horizontally center an image within a DIV, my IMG has the following style :

style="display:block; margin-left:auto; margin-right:auto;"

which works fine in FireFox but doesnt work in IE6, any ideas why?

You can see a link to my image and page below :

http://www.pets4homes.co.uk/Pets4Homes/home.nsf/LookupMULTI/FF84891F8BD5D302802573F40073FF6E

Thanks
Mark

jcdevelopment
02-22-2008, 04:56 PM
try adding in



text-align:center;

singy
02-22-2008, 05:11 PM
Hi,

Great, that worked!

Thanks

jcdevelopment
02-22-2008, 05:16 PM
no problem, the sites looking pretty good by the way!!

effpeetee
02-22-2008, 05:48 PM
no problem, the sites looking pretty good by the way!!
I'll second that.

Frank

singy
02-22-2008, 07:28 PM
Thanks for the help and the compliments on my site.

Mark



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum