Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / display in middle of screen

display in middle of screen

Locked

Views: 1,192

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
28 Jul 2007, 12:42 PM
#1
charlie_denver avatar

charlie_denver

New Zenner

Join Date:
Jul 2007
Location:
Cornwall UK
Posts:
33
Plugin Contributions:
0

display in middle of screen

I appear to have spead my page out across the screen, how do I get it back to the center, so there are spaces either side of the sideboxes as per the default

28 Jul 2007, 1:51 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: display in middle of screen

In your stylesheet,
#mainWrapper { width: 100%;}
will make the page fill the window. If you want it smaller, make it width: 760px; or width: 90%; or whatever you want.

28 Jul 2007, 2:16 PM
#3
casedup avatar

casedup

New Zenner

Join Date:
Jul 2007
Posts:
1
Plugin Contributions:
0

Re: display in middle of screen

I tried changing the width of my template by doing what was noted... changing the 100% to 750px. However when i do this... it changes the color and the width of my whole zen cart.... why does it effect the color also when i am only updating the width.

28 Jul 2007, 2:20 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: display in middle of screen

Changing the width of #mainWrapper will not affect the colors of your site.

It will, however, reveal the background color of the page body at the sides, if #mainWrapper has a background color that is different from the body.

28 Jul 2007, 2:35 PM
#5
charlie_denver avatar

charlie_denver

New Zenner

Join Date:
Jul 2007
Location:
Cornwall UK
Posts:
33
Plugin Contributions:
0

Re: display in middle of screen

Thanks, I have quite a wide logo, is it possible to have the logo shrink with the size of the wrapper.
At the moment it sticks out to the left.

28 Jul 2007, 3:02 PM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: display in middle of screen

No, single images are the size they are. There are ways to use multiple overlapping pieces or background colors to make the logo look like it is seamlessly stretching.
Google "sliding door method" for a good article (about buttons, but relates to anything).