Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.

Pages resizing

Locked
This thread is locked. New replies are disabled.
27 Apr 2007, 6:44 PM
#1
cbrknight avatar

cbrknight

New Zenner

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

Post #1 by cbrknight

I am still getting up to speed on the template system. I have alot of it figured out. However, I have some pages on my site that resize. I cant seem to figure out how to stop it. I tried putting a wrapper around the

require($body_code); ?>

in tpl_main_page.php

however it is not helping.

the biggest problem pages are

contact us

index.php?main_page=index&cPath=6 (displays list of products in category)

mainpage=login / logout

these pages seem to be unrelated so how do I keep them all to a specific width?

Thanks

27 Apr 2007, 10:05 PM
#3
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Post #3 by motti

Hi

I think I got same problem in some pages, my boxes go off the main page to the right
If and when you find a solution, please post it here so I can solve my issue too
This is one of my pages http://www.tiledepot.us/store/index.php?main_page=index&cPath=2

Thank You

4 May 2007, 6:45 AM
#5
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Post #5 by usernamenone

First fix these two errors

line 501 .centerBoxHeading Property background-colo doesn't exist : #c9eda5
line 779 .Left_Nav_FPS_Box_Header a:visited, .Left_Nav_FPS_Box_Header a:link Parse Error -

Then
Find this code:
body {
margin: 0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: #ffffff;
height:100%;
width:100%;
}

And change to this code:

body {
margin: 0;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 62.5%;
color: #000000;
background-color: #ffffff;
}

Find this code:

#navBreadCrumb, #navEZPagesTop {

font-size: 0.95em;

font-weight: bold;

margin: 0em;

padding: 0.5em;

width:100%;

float:left;

}

and chang to this code:

#navBreadCrumb, #navEZPagesTop {
font-size: 0.95em;
font-weight: bold;
margin: 0em;
padding: 0.5em;
width:760px;
float:left;
}

Should have all your pages in the center with no hang-overs or blow-outs


Play with it long enough and you will break it.
4 May 2007, 8:32 AM
#6
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Post #6 by motti

Hi and Thank You all for the help
I did learn the hard way, (Thank you Clyde) not to use dream weaver or word to copy paste to Zen cart,
I spent abut a month trying to fix it, and today I actually got it fix , and again thx to Clyde.

For all you out their new one use note pad , PCKeditor, or few other safe ones.

What I did base on Clyde tip is add on my stylesheet.css this comment,

#mainpage {
font-family: "times new roman", times, serif;
font-size: 1.3em;

text-align: center;
}


(can’t explain exactly what it dose but well you take Madison from your doctor when you need and don’t always know what you taking)
So I got my problem solve, hope other will learn from my problem.

Good luck

4 May 2007, 2:33 PM
#7
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Post #7 by usernamenone

AAA HUM, This thread was **cbrknight's and the fix was for cbrknight.

**


Play with it long enough and you will break it.
5 May 2007, 12:58 PM
#8
cbrknight avatar

cbrknight

New Zenner

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

Post #8 by cbrknight

Thanks for finding those errors.

I fixed them and applied the changes you posted. It is still blowing out. Man I love css but it can be a REAL pain.

Any ideas what else it could be?

5 May 2007, 3:23 PM
#9
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Post #9 by usernamenone

Your contact us page and the help center are the only blown out page so the problem lies in formatting of those pages.

Did you add a un needed style there? Cut the content out of those pages and paste in a text file. Then save your zen cart page and test in the browser. I think you will find your issues there

You have 2 stylesheets and you need to choose one of them and trun the other into a .txt for testing.

If you are going with a 760 wide page you should also change this:
.header_wrapper {
width: 100%; /should be 760px/*/
background-color: #cacaca;
}


Play with it long enough and you will break it.
27 Sep 2007, 7:29 PM
#10
velvetgirl avatar

velvetgirl

New Zenner

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

Post #10 by velvetgirl

motti:

Hi

I think I got same problem in some pages, my boxes go off the main page to the right
If and when you find a solution, please post it here so I can solve my issue too

Thank You

I am having this problem now, I changed my page width - only the width number - now all of my pages are correct except one:

http://www.bopeepswoolshop.com/zencart/index.php?main_page=index&cPath=4

27 Sep 2007, 7:50 PM
#12
velvetgirl avatar

velvetgirl

New Zenner

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

Post #12 by velvetgirl

gjh42:

There is nothing wrong with the display in Firefox. Is it misbehaving in IE?

Yes, IE 7. I will try it on my other computer with IE 6. Thanks.

27 Sep 2007, 10:05 PM
#13
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Post #13 by motti

Hi

I think it because the 2 pictures you got their in the middle are pushing the right side box off the border

Each one of your picture are 250 include side boxes I assume the are abut 150 – 200 each include the space you got between them,

I am not an export, hope it help

Motti

27 Sep 2007, 10:26 PM
#14
velvetgirl avatar

velvetgirl

New Zenner

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

Post #14 by velvetgirl

motti:

Hi

I think it because the 2 pictures you got their in the middle are pushing the right side box off the border

Each one of your picture are 250 include side boxes I assume the are abut 150 – 200 each include the space you got between them,

I am not an export, hope it help

Motti

You're right, I resized them and now it looks like it should. Thanks!

27 Sep 2007, 10:46 PM
#15
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Post #15 by motti

Cool

Glad i could help