X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Category Pics not displaling in IE correctly (https://forum.x-cart.com/showthread.php?t=51617)

suiteone 01-05-2010 01:39 PM

Category Pics not displaling in IE correctly
 
Hello,

I am new to this form and have searched for an answer, please forgive me if I missed the post.

http://67.227.134.204/shop/home.php?cat=365


The category pics do not display in IE, is there a fix for this?


It works great in FireFox!

thanks for your time.

Cheers,

Jason

gb2world 01-05-2010 02:56 PM

Re: Category Pics not displaling in IE correctly
 
Looks as if you have an error in one of your templates. Where the images are not displaying in IE, you have:
<img width="200" height="$height"

suiteone 01-05-2010 03:02 PM

Re: Category Pics not displaling in IE correctly
 
what would i put there to make it auto on the height?

gb2world 01-05-2010 03:06 PM

Re: Category Pics not displaling in IE correctly
 
I don't understand your question.

If you don't state a height, the image will scale to a width of 200.

suiteone 01-05-2010 04:23 PM

Re: Category Pics not displaling in IE correctly
 
so the correct code would be

<img width="200" height=""

I do want the 200 width but I want the height to be determined by the image.

Thanks for your help. This will save me days if not weeks.

gb2world 01-05-2010 04:41 PM

Re: Category Pics not displaling in IE correctly
 
no - then you will have the same issues in IE.

just do
<img width="200" src="the url" alt="alt text" />

Still not sure I understand 'determined by the image'. If you set the width only, it will scale based on the width. If you want it to scale by the height, set the height, not the width. Anything else will distort the image, unless width and height are set proportional to the original.

see this to understand what the html settings will do.

suiteone 01-05-2010 04:44 PM

Re: Category Pics not displaling in IE correctly
 
You wouldn't happen to know which template file that is in?

gb2world 01-05-2010 05:20 PM

Re: Category Pics not displaling in IE correctly
 
Have you tried using Webmaster mode? It will tell you exactly which template to modify so you don't have to guess. You'll probably find some of the problems in skin1/customer/main/subcategories.tpl. Not sure about what templates were modified on your front page.

suiteone 01-05-2010 05:36 PM

Re: Category Pics not displaling in IE correctly
 
wow, you are very good, here is what I found.

<a href="home.php?cat={$subcat.categoryid}"><img src="{$subcat.icon_url|amp}" alt="{$subcat.category|escape}" style="border: 1px solid rgb(190, 166, 121); padding: 2px;"/ width="200" height="$height"></a>

suiteone 01-05-2010 05:46 PM

Re: Category Pics not displaling in IE correctly
 
I fixed it!

You are very kind, and i really appreciate your help.

If there is anyway i can return the favor just ask.

Cheers,

Jason


All times are GMT -8. The time now is 03:27 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.