Zen Cart Logo

Center Cart in Page

Locked

Views: 997

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 Aug 2007, 4:50 PM
#1
spaatz avatar

spaatz

New Zenner

Join Date:
Aug 2007
Posts:
12
Plugin Contributions:
0

Center Cart in Page

Hello All,

I have modified the hell out of my cart and am now at the final phase where I want to do something simple but be darned if I can't figure out how to do it.

I have my cart at http://www.ozelloshrimper.com/cart/ and it is presently left aligned at the top flush with top of the browser. I want it to be centered flush with the top of the browser.

Where exactly should I be looking to do this? I have tried playing with the CSS sheets and disecting the layout code but can't identify the location to make this modification. I really don't know how I made it do this in the first place. I think I must have deleted or modified some of the code last week and don't remember where.

Thanks for the help!

22 Aug 2007, 5:06 PM
#2
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

Re: Center Cart in Page

Spaatz:

You didn't happen to forget to make your own template, did you?
I see you're using the classic template as your own.

Well, I guess you can do that if you choose.

in your stylesheet.css

#navColumnOneWrapper, #navColumnTwoWrapper, # {
margin: auto;
}

That third "#" should probably be "#mainWrapper"

Give that at shot, and see what happens.

Elliot

The loves of my life are a good white zinfandel and my dog Homer.

22 Aug 2007, 5:23 PM
#3
spaatz avatar

spaatz

New Zenner

Join Date:
Aug 2007
Posts:
12
Plugin Contributions:
0

Re: Center Cart in Page

You were right about the error but it still didn't straighten it out.

Any ideas?

22 Aug 2007, 5:47 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: Center Cart in Page

Here's your problem:

#navColumnOneWrapper, #navColumnTwoWrapper, #mainwrapper {
margin: auto;
}

CSS classes & id's are case-sensitive. Make that #mainWrapper and see what happens.

23 Aug 2007, 2:47 PM
#5
spaatz avatar

spaatz

New Zenner

Join Date:
Aug 2007
Posts:
12
Plugin Contributions:
0

Re: Center Cart in Page

That solved it! Thanks for both of your help! You rock!