MR_MAN
12-10-2004, 13:01
Hello.
I have a problem with some images in IE and not Mozilla.
I currently have a td with a background image using this code:-
< td height="150px" valign="middle" style="background: url(images); background-repeat: no-repeat; padding:0px; background-position: center center;" >
I have then placed another image on top of that using this code:-
< a href="./index.php?product_id=<? print $rstMain[product_id];?>&option=Prod_detail&image_id=<? print $rstPicsR['image_id'];?>">
< img src="./images/<? print $ecom_hostname ?>/site_images/catbackgr2.gif" style="padding:0px;" alt="<? print $rstMain['pname'];?>" border="0" hspace="0" vspace="0" >< /a >
In mozilla the image line up perfectly but in IE the background image seems to slip down an extra two points. I think its because the top image it exactly the same size as the background image and the must be a thing in ie that pads images. i have set padding to 0 every where and border to 0 but that don't make any difference.
If you don't know what i mean then i can send you the images from a print screen but i din't have anywhere to host them or i would.
If you don't know what i am talking about please say and i will try and explain better.
Cheers
Stuart
I have a problem with some images in IE and not Mozilla.
I currently have a td with a background image using this code:-
< td height="150px" valign="middle" style="background: url(images); background-repeat: no-repeat; padding:0px; background-position: center center;" >
I have then placed another image on top of that using this code:-
< a href="./index.php?product_id=<? print $rstMain[product_id];?>&option=Prod_detail&image_id=<? print $rstPicsR['image_id'];?>">
< img src="./images/<? print $ecom_hostname ?>/site_images/catbackgr2.gif" style="padding:0px;" alt="<? print $rstMain['pname'];?>" border="0" hspace="0" vspace="0" >< /a >
In mozilla the image line up perfectly but in IE the background image seems to slip down an extra two points. I think its because the top image it exactly the same size as the background image and the must be a thing in ie that pads images. i have set padding to 0 every where and border to 0 but that don't make any difference.
If you don't know what i mean then i can send you the images from a print screen but i din't have anywhere to host them or i would.
If you don't know what i am talking about please say and i will try and explain better.
Cheers
Stuart