Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / How to change the size of the middle column of the site?

How to change the size of the middle column of the site?

Locked
This thread is locked. New replies are disabled.
4 Jan 2010, 1:47 AM
#1
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #1 by punit

Hi,

How can i change the width of the middle column. as i checked the forum i found that to get a bigger width i have to change the #mainWrapper in the stylesheet.css

but in my stylesheet i can only find this code for mainwrapper

#mainWrapper {
text-align: left;
width: 110%;
vertical-align: top;
}

and when i increase the width from 100% to any other higher no, the website move to right side of the screen.

4 Jan 2010, 2:05 AM
#2
gjh42 avatar

gjh42

Black Belt

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

Post #2 by gjh42

Don't use more than 100% for width - this is likely to force horizontal scrollbars which people hate. You have only so much screen real estate to use, and you need to decide what is most important to occupy that space. Making the sidebars narrower will let the center be wider, for a given screen width.
A link to see your site live will let us advise on the best balance of elements.

4 Jan 2010, 3:04 AM
#3
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #3 by punit

I have attached the pic of website.... as the site is not live yet

my current screen resolution is 1280 x 800 pxl and therefor the site looks very tiny for the screen.
even if i change then resolution to 1024 x 768, still the site show a lot extra space on both the side. which i want to reduce so tht the main center page look big.

4 Jan 2010, 3:25 AM
#4
gjh42 avatar

gjh42

Black Belt

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

Post #4 by gjh42

You have a custom template which has the content area fixed width while the header is allowed to stretch to fill the screen. #mainWrapper is not the selector to increase the width of, but we can't tell what custom wrappers and names the template maker may have used.
Is your site only on your local pc, or just not ready for public exposure on the server yet?

4 Jan 2010, 3:53 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Post #6 by gjh42

Seeing that template live is very helpful, as long as you haven't made significant changes to it on your site.

The element that would normally be the one to edit for content width, #contentMainWrapper, is contained in a div named .main which has the fixed width.
In stylesheet_tm.css:```
.main {
margin:auto;
width:766px;
}

4 Jan 2010, 4:18 AM
#7
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #7 by punit

Thanks mate... u were really helpful :clap:

If u dont mind can u check 1more thing for me..?

in the template theres a guys pic on the right side on the white background. next to category list.
i want to remove the white background and the guys pic and want to put some other background with different colour.
do u knw how can i do tht.

4 Jan 2010, 4:25 AM
#8
gjh42 avatar

gjh42

Black Belt

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

Post #8 by gjh42

That is an empty div named .banner_set3, so you can change its background image and other properties in stylesheet_tm:```
.banner_set3 {background:url(../images/bg_banner.jpg) top right no-repeat; height:153px;}

4 Jan 2010, 6:09 AM
#9
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #9 by punit

hey i didnt find anything in the css file to change the background of that white area.
if i replace the pic bg_banner.jpg and put some another pic then it only cover center box and right box area. remaining all show white.

please check the screen shot i added earlier in this post, still it looks the same way.

5 Jan 2010, 1:57 AM
#11
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #11 by punit

i didnt find anything called "and other properties" in stylesheet_tm.css :no:

5 Jan 2010, 3:17 AM
#12
gjh42 avatar

gjh42

Black Belt

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

Post #12 by gjh42

You weren't really looking for the text "and other properties" in the stylesheet, were you?
Just add a color to the rule:```
.banner_set3 {background: #aabbcc url(../images/bg_banner.jpg) top right no-repeat; height:153px;}

5 Jan 2010, 4:59 AM
#13
punit avatar

punit

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Post #13 by punit

i tried that yesterday only but the background colour changes only for middle column. not for the entire banner.
Check the attachment.

5 Jan 2010, 4:19 PM
#14
gjh42 avatar

gjh42

Black Belt

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

Post #14 by gjh42

The white strip across the page is the background-image in .content_bg (stylesheet_tm.css, line 70). Change that bg image to the color you want and it will stretch all the way across the screen. It is a 1px wide by 153px tall block of white color.