Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Strange "image" behavior ?

Strange "image" behavior ?

Locked

Views: 1,576

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
8 Apr 2008, 6:04 PM
#1
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Strange "image" behavior ?

Some of my images are "blocking text". In other words the image is set to "front". For example, in the link below if you scroll the left hand navigation you will see the first image is actually blocking the drop out menu. ?? I don't see anything in Admin to adjust this.

http://www.cvtreasures.com/index.php?main_page=products_new

8 Apr 2008, 8:02 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Strange "image" behavior ?

It's behaving fine in Firefox. Are you looking in IE? If so, it is probably some obscure IE bug causing the effect.

I see the effect in IE6. You are using IH2 or some other special image display mod, and the code for this is not compatible with the code for the flyout menu mod.

Post in the relevant mod support threads for help with this.

8 Apr 2008, 8:04 PM
#3
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Strange "image" behavior ?

Yes, using IE. Versions 6 and 7.

16 Apr 2008, 11:08 AM
#4
thegluepeople avatar

thegluepeople

New Zenner

Join Date:
Apr 2008
Posts:
1
Plugin Contributions:
0

Re: Strange "image" behavior ?

I have this issues also, with my header logo.

It displays fine in Firefox but only partially displays the image using internet exploder.

Any ideas how I might fix this?
(get Bill Gates in here now!!)

https://www.thegluepeople.co.uk

Thanks

16 Apr 2008, 11:42 AM
#5
cunningstunt avatar

cunningstunt

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: Strange "image" behavior ?

Im also having a similar issue with IE and my header logo.

Firefox displays it fine but internet exploder only partially displays the image.

https://www.thegluepeople.co.uk

Any ideas how I might resolve this? Thanks

16 Apr 2008, 3:53 PM
#6
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Strange "image" behavior ?

I never got a response here, other then "it owrks fine with Firefox". But, I'll keep looking on other sites on the web

16 Apr 2008, 3:55 PM
#7
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Strange "image" behavior ?

Actually gjh42 gave some help on the image handler. He suggests posts in the specific IH mod thread area.

16 Apr 2008, 6:14 PM
#8
cunningstunt avatar

cunningstunt

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: Strange "image" behavior ?

I managed to get it working by editting tpl_header.php and adding the following style settings to the logo div.

<div id="logo" style="position: relative; float: left;width:194px; height:106px; text-align:center;">

Apologies for the double post.

16 Apr 2008, 7:09 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Strange "image" behavior ?

The better and easier way to add styles is to put them in the stylesheet (/includes/templates/your_template/css/stylesheet.css).

That way the layout details and controls are all in one place, and you won't have to copy the edits over in PHP files when you upgrade to a new version of Zen Cart.

Just add to the #logo declaration:

#logo {
    float: left;
    width:194px;
    height:106px;
    text-align:center;
    }

( position: relative; and float: do not go together.)
And actually, the width and height are defined in /includes/languages/english/your_template/header.php:

define('HEADER_LOGO_WIDTH', '192px');
define('HEADER_LOGO_HEIGHT', '64px');

and you need to change them there.

16 Apr 2008, 7:17 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Strange "image" behavior ?

Just remembered, the position: relative can work for giving an element a z-index, so that's why it's there.

16 Apr 2008, 8:02 PM
#11
cunningstunt avatar

cunningstunt

New Zenner

Join Date:
Jun 2007
Posts:
29
Plugin Contributions:
0

Re: Strange "image" behavior ?

thanks for your help gjh42, i'll implement your changes.

16 Apr 2008, 8:34 PM
#12
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: Strange "image" behavior ?

Excellent! Now I just need to figure out how to do the same thing with my "Fly out" menu,

Kevin
https://www.cvtreasures.com