Forums / Templates, Stylesheets, Page Layout / page is stretched but in css it was set to be 960px

page is stretched but in css it was set to be 960px

Locked

Views: 696

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
17 Oct 2010, 1:57 PM
#1
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

page is stretched but in css it was set to be 960px

Hello everybody!

I have a question about the layout please.
My layout was suddenly stretched with no more space on the right and left but I actually didnt touch the css and the maincontentwrapper is still set to 960px. The last file that I touched was the tpl_main_page.php.

I was trying to hide the left boxes on the checkout page when it happened and I did it at tpl_main_page.php. Is there any other file aside from the css that dictates the general layout of all the pages? Thank you so much, any help will be very much appreciated.

If you can please look at this:

https://www.streetstylejunkie.com
test account: test
test password: welcome

17 Oct 2010, 3:42 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: page is stretched but in css it was set to be 960px

Your stylesheet.css file is missing

#mainWrapper {width: 960px; margin: 0 auto; }
17 Oct 2010, 4:36 PM
#3
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: page is stretched but in css it was set to be 960px

went i went back to my stylesheet.css, the mainwrapper had a dot before it instead of the # sign. so i changed it and now everything is on the left with 960px width. (no longer stretched, thank you!!)how do i make everything be in the center? please excuse my stupidity but sigh, i'll sit down and study css for zen cart one of these days.

17 Oct 2010, 4:42 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: page is stretched but in css it was set to be 960px

Your stylesheet now has a two mainWrapper sections. that's fine and normal, but the one that comes second resets your margin for this ID to "0". It would need to be "0 auto" to center the page.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

17 Oct 2010, 4:45 PM
#5
barco57 avatar

barco57

Totally Zenned

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

Re: page is stretched but in css it was set to be 960px

remove #mainWrapper from the following:

#headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin:0;
padding:0;
}

and add the padding:0 to the following:

#mainWrapper {
margin:auto;
text-align:left;
vertical-align:top;
width:900px;
}

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

17 Oct 2010, 5:05 PM
#6
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: page is stretched but in css it was set to be 960px

oh my God! that did it! that magic code!!:clap:

i could cry for relief. thank you so very very much!! tears

17 Oct 2010, 5:12 PM
#7
mayleine avatar

mayleine

New Zenner

Join Date:
Oct 2010
Posts:
25
Plugin Contributions:
0

Re: page is stretched but in css it was set to be 960px

lat9, kuroi, and barco57, mwah mwah mwah! thanks a lot! ;) you made my weekend, woohhoooo!!!