Forums / Templates, Stylesheets, Page Layout / pesky margin-top and center issues

pesky margin-top and center issues

Locked

Views: 1,083

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
7 Apr 2007, 5:01 PM
#1
artcop avatar

artcop

New Zenner

Join Date:
Jan 2006
Posts:
10
Plugin Contributions:
0

pesky margin-top and center issues

After upgrading to 1.3.7 from 1.2.something I can not coerce the margin at the top to zero pix. Clicking from the 'Home' to 'Shop' areas also show some kind of text-align left issue- notice the content boinks to the left and down about 10 pixels. I've tried adding the usual bodytags to the tpl_header file where my custom nav table is and everything else in the stylesheet that seems relevant with no effect except to override the width constraints or some other thing that I don't want to change.

aromaceuticals

Soon, apparently, we will see a version of Zencart with a stylesheet that is just a list of tags separated by commas with one group of auto parameters for all :-b

7 Apr 2007, 8:46 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: pesky margin-top and center issues

Your header area is completely nonstandard, so it's hard to say just what is causing your issoe.
For one thing, the DHTML menu is outside (above) the headerWrapper, which might cause some extra spacing.
You have disabled all of the stock header elements, and your custom elements don't have many class/id tags, so there is not much the stylesheet can do here.

7 Apr 2007, 8:52 PM
#3
tmc_sherpa avatar

tmc_sherpa

Zen Follower

Join Date:
Mar 2007
Posts:
158
Plugin Contributions:
0

Re: pesky margin-top and center issues

the older version of zen used tables, 1.3.x uses css stylesheets to control the page layout. nothing is impossible, but it will take some work.
it will probably be easier to start with a new template and make it look like your old one rather than to hack and slash what you have already

Listen to Glenn, he's been here longer than I have :)

Lazy and willing to work very hard to stay that way

8 Apr 2007, 3:12 AM
#4
artcop avatar

artcop

New Zenner

Join Date:
Jan 2006
Posts:
10
Plugin Contributions:
0

Re: pesky margin-top and center issues

gjh42:

Your header area is completely nonstandard, so it's hard to say just what is causing your issoe.
For one thing, the DHTML menu is outside (above) the headerWrapper, which might cause some extra spacing.
You have disabled all of the stock header elements, and your custom elements don't have many class/id tags, so there is not much the stylesheet can do here.

The menu itself isn't outside the headerWrapper but the javascript path is. That's fairly standard for javascript menus. The custom elements are instructed by the .js file whose path is inside the header. None of this is irregular as you know, and it totally worked in the last version of zencart.

Thanks for the reply though... I'll keep trying.