Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Can't centre Header image.

Can't centre Header image.

Views: 662

Results 1 to 5 of 5
8 Oct 2011, 7:56 AM
#1
garwak avatar

garwak

New Zenner

Join Date:
Feb 2011
Posts:
29
Plugin Contributions:
0

Can't centre Header image.

I can't seem to find where I am going wrong here http://www.expressembroidery.com.au/zencart/ can't get the image to move over to the left. Can someone pls help?

Many thanks

8 Oct 2011, 10:41 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Can't centre Header image.

Here's the culprit:

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
margin: 0em 5em 0em 30em;
}

Also, Zencart loads all stylesheets with the .css extension that are in the current template's css folder, so you have two sheets fighting each other. Remove or rename one or the other.

8 Oct 2011, 10:53 AM
#3
garwak avatar

garwak

New Zenner

Join Date:
Feb 2011
Posts:
29
Plugin Contributions:
0

Re: Can't centre Header image.

mmm found that it my stylesheet and changed it to 0 but didn't seem to change anything. Still confused...

Thanks
Gary

8 Oct 2011, 10:55 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Can't centre Header image.

That's because it's in both stylesheets (stylesheet.css and stylesheet_safe.css), which is why I recommended you remove one or the other.

8 Oct 2011, 11:23 AM
#5
garwak avatar

garwak

New Zenner

Join Date:
Feb 2011
Posts:
29
Plugin Contributions:
0

Re: Can't centre Header image.

Awesome, got it thanks.

Many thanks
Gary