Forums / Templates, Stylesheets, Page Layout / Why is my site aligned left?

Why is my site aligned left?

Locked

Views: 1,100

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
20 Sep 2008, 12:43 AM
#1
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Why is my site aligned left?

I have tried and tried to figure this out. Can someone please tell me what is causing my shop to be aligned left? I would like it to be centered with some margins on each side.

I do want the text in the sideboxes and center content and so forth to be left-aligned. I just want the whole container to be centered on the page.

Site (work in progress) is here:

http://thewindcutter.com/shop

Thanks in advance for the help!
Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

20 Sep 2008, 1:08 AM
#2
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Why is my site aligned left?

the problem is here:```
#headerWrapper, #contentMainWrapper, /#cartBoxListWrapper,/ #ezPageBoxList, /#cartBoxListWrapper ul,/ #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 5px;
text-align: left;
}


You have that below the mainWrapper statement where you set the margins to auto. This statement overrides that and moves it left...so remove #mainWrapper from that statement and all should be good

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

20 Sep 2008, 1:42 AM
#3
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Why is my site aligned left?

Hi Mike! Thanks for the quick reply.

Unfortunately, I removed #mainWrapper and that didn't help.

Any more suggestions?

Thanks!

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

20 Sep 2008, 4:20 AM
#4
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Why is my site aligned left?

I found it and fixed it. You set the body width the same as the main wrapper, so mainWrapper was doing what it was supposed to do but with the body set to the same width it just collapsed to the left. I set the body width to 100% and now everything works like its suppose to .

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

20 Sep 2008, 4:37 PM
#5
rebekah avatar

rebekah

Zen Follower

Join Date:
Mar 2006
Posts:
183
Plugin Contributions:
0

Re: Why is my site aligned left?

Thank you, Mike! Ooh, I was pulling my hair out over that one. :P

You sure come in handy at Camelot! :wink:

Thank you again!

Rebekah

**TheWindCutter.com**
Professional Microphone Windscreens
*Got wind noise? We've got you covered. *

20 Sep 2008, 4:53 PM
#6
meshach avatar

meshach

Zen Follower

Join Date:
Jun 2008
Location:
USA
Posts:
188
Plugin Contributions:
0

Re: Why is my site aligned left?

Hello Mike.

I just wanted to thank you for your swift response to this problem.

Thank again.
Meshach


20 Sep 2008, 4:58 PM
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Why is my site aligned left?

No Problem, thats what I do.

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!