Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Header off center???? How did this happen?

Header off center???? How did this happen?

Views: 1,136

Results 1 to 10 of 10
9 Feb 2014, 7:26 PM
#1
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Header off center???? How did this happen?

1fastdeal.com

I cant figure out how to recenter my header and menu! Can anyone help?

9 Feb 2014, 7:37 PM
#2
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Header off center???? How did this happen?

jenkins2212:

1fastdeal.com

I cant figure out how to recenter my header and menu! Can anyone help?

When I view your source code I am seeing multile <html> and <body> tags. I don't know if it is the exact cause, but I would definitely fix these.

Thanks,

Anne

9 Feb 2014, 8:01 PM
#3
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Header off center???? How did this happen?

Thanks for the reply anne as usual

Would this be in the header file? Of the main page file?

9 Feb 2014, 8:20 PM
#4
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Header off center???? How did this happen?

jenkins2212:

Thanks for the reply anne as usual

Would this be in the header file? Of the main page file?

I am not sure where this code is. If you view the page source, you will see them. I would use the developers toolkit to search for the code.

Thanks,

Anne

10 Feb 2014, 2:40 AM
#5
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Header off center???? How did this happen?

There are <li> elements that are not rendering in the menu.

All of the <li> options are given 28px space to be in, even if they aren't displaying text.

Also the menu structure is a bit off for the number of options it's drawing.

So, when I change your div#dropMenu, level1 and submenu it continues to draw the <li> element as if it was displaying text.

I assume you turned off various menu options the template originally had turned on?

15 Feb 2014, 10:04 PM
#6
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Header off center???? How did this happen?

I added back the menu items and the header is still off center. It seems to do this whenever i made changes to the product listing php file. Would this have anything to do with the header?

16 Feb 2014, 2:18 AM
#7
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Header off center???? How did this happen?

Im so lost!!! I have replaced most edited files with the originals and still not change???????
I need some hand holding .......
What file would the mess up be in?
Im lost when it comes to finding the extra <li> etc

16 Feb 2014, 2:20 AM
#8
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Header off center???? How did this happen?

PM/Email or Live Chat your ftp credentials and I'll look over it right now... :)

16 Feb 2014, 5:06 AM
#9
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Header off center???? How did this happen?

Fixed it by correcting the #dropmenu width, centered with the margins, then setup the UL box to float in the middle. The tpl_drop_menu.php dropped unused div's.

The dynamic UL generator was unchanged it continues to dynamically create the actual menu options.

16 Feb 2014, 4:43 PM
#10
jenkins2212 avatar

jenkins2212

New Zenner

Join Date:
Oct 2013
Location:
Athens, Georgia, United States
Posts:
27
Plugin Contributions:
0

Re: Header off center???? How did this happen?

I just want to thank Twitch for helping me out in fixing my site! Staying up until the wee hours of the morning fixing some noobie mistakes!