Zen Cart Logo
Forums / Basic Configuration / how to adjust center column width?

how to adjust center column width?

Locked

Views: 7,011

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
3 Nov 2009, 2:59 PM
#1
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

how to adjust center column width?

Hi, the center column on my front page doesn't seem to be going to 100%.

Here is an example:

http://www.rc-helicop.us/store

As you can see, there is a large white space on two side.I have tried forcing it to 100% within the stylesheet.css file:

#contentMainWrapper {
float:left;
line-height:1.6em;
margin-right:1%;
padding:0pt 2%;
text-align:left;
width:100%;

     margin-top:3px;}

..to no avail. I've disabled all right columns in my site. I'm sure that I'm missing something simple or there is something overriding my settings. Please help.

Thanks

3 Nov 2009, 3:38 PM
#2
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

The problem is that the left column container (#navColumnOne) is taking up too much width. What is really strange is that there is no property in that or its content (#navColumnOneWrapper) that would force it to expand beyond its specified 178px.

3 Nov 2009, 3:43 PM
#3
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Thanks, but how can this problem be fixed, it really harass me

3 Nov 2009, 3:44 PM
#4
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

If you are talking about the overall site width, #contentMainWrapper is enclosed in #mainWrapper, inside .dc, inside .dr, inside .dt.main ; any one of those could be limiting the width.

8 Nov 2009, 4:38 AM
#5
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Hi, i have added width=100% at all sections under #contentMainWrapper but it doesn't work........:no:

#headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 0em;
width:100%
}
#contentMainWrapper {
float:left;
line-height:1.6em;
margin-right:1%;
padding:0pt 2%;
text-align:left;
width:100%;

     margin-top:3px;}

#navColumnOneWrapper, #navColumnTwoWrapper, #mainWrapper {
width:100%
margin: auto;

    } 

#tagline {
color:#000000;
font-size: 2em;
text-align : center;
vertical-align: middle;
width: 10px;
}

#sendSpendWrapper {
border: 1px solid #cacaca;
float: right;
margin: 0em 0em 1em 1em;
}

.floatingBox, #accountLinksWrapper, #sendSpendWrapper, #checkoutShipto, #checkoutBillto, #navEZPagesTOCWrapper {
margin: 0;
width:95%
}

.wrapperAttribsOptions {
margin: 0.3em 0em;
}

10 Nov 2009, 9:11 AM
#6
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

I've disabled all right columns in my site.

You may have turned off right sideboxes, but your right column is still active. Turn it off in Configuration > Layout Settings > Column Right - Status.

View source shows:

<td id="navColumnOne" class="columnLeft" valign="top" style="width: 178px;"> </td> <td width="3"> </td> <td width="378" valign="top">

This is trying to force the center column to be only 378px wide.

10 Nov 2009, 5:01 PM
#7
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

gjh42 thanks for keep providing solutions, i did tried your suggestion, but it didn't work out, please see below

#headerWrapper, #contentMainWrapper, #logoWrapper, #cartBoxListWrapper, #ezPageBoxList, #cartBoxListWrapper ul, #ezPageBoxList ul, #mainWrapper, #popupAdditionalImage, #popupImage {
margin: 0em;
padding: 0em;
width:100%
}
#contentMainWrapper {
float:left;
line-height:1.6em;
margin-right:1%;
padding:0pt 2%;
text-align:left;
width:100%;

     margin-top:3px;}

#navColumnOneWrapper,{
width="378px"

}

#navColumnTwoWrapper, #mainWrapper {
margin: auto;

    }
10 Nov 2009, 5:02 PM
#8
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Regarding the left and right column:

/list box contents/
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .additionalImages, .centerBoxContentsSpecials, .centerBoxContentsAlsoPurch, .centerBoxContentsFeatured, .centerBoxContentsNew {
width:100%
margin: 1em 0em;
}

/sideboxes/
.columnLeft {width: 178px}
.columnRight {width: 0px}

12 Nov 2009, 7:10 AM
#9
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

This rule has two errors that will prevent it from working:```
#navColumnOneWrapper,{
width="378px"

}

#navColumnOneWrapper {
width: 378px;

}

12 Nov 2009, 5:11 PM
#10
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

it doesn't have effects, please see my website below:no:

http://www.rc-helicop.us/store

12 Nov 2009, 5:41 PM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

You don't actually want #navColumnOneWrapper to be 378px wide; I just noticed that that rule was written wrong.
The fundamental problem is that the center column is set in the template code to be 378px wide when there is no real reason to give it any specific width. View source shows this```html

<td width="3"> <img width="3" height="1" alt="" src="includes/templates/rchelicop/images/spacer.gif"/> </td> <td width="378" valign="top"> <div id="indexDefault" class="rbg1"> ```If you change the "378" to "666" you will get a decent width for the center. This may be set in /includes/templates/your_template/common/tpl_main_page.php, or TM may have worked up something else.

I am not sure whether TM makes their templates hard for others to modify just from stupidity, or if they planned it so that customers would have to come back to them for modifications.

13 Nov 2009, 2:50 PM
#12
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Amazing! this is the magical moment i have been long for.
Thank you.:smile:

but one problem still stand, how can i get rid of the blank between left column and center column?

Http://www.rc-helicop.us/store

13 Nov 2009, 3:19 PM
#13
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

Change the width described above until you like the result.

13 Nov 2009, 4:22 PM
#14
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Thanks for your support so far:clap:, i would like to ask one more question:

how can i adjust the product description layout, as you can see, all buttoms and description stacked on left

http://www.rc-helicop.us/store/index.php?main_page=index&cPath=1

13 Nov 2009, 11:45 PM
#15
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

It looks like a standard TM product listing layout to me (in Firefox). What browser are you using? And how do you want the display to look?
TM has customized that too, and I don't know how hard it will be to change.

15 Nov 2009, 7:26 AM
#16
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

hi, really thanks for your help,

I am using Maxthon for daily website suffering, the website shows normal when i use IE8, but it become another problem:

please see my another website:

https://www.lycorcatsuit.us

it works wild when i use IE8 browsing it...:cry:

17 Nov 2009, 8:09 PM
#17
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

I've never heard of Maxthon, and don't know what quirks it might have with HTML/CSS rendering. I don't have IE8 so can't comment on that - hopefully someone else can.
You do have a problem in Firefox with the center crowding and overlapping with sideboxes, so you must have some styling or template errors.

23 Nov 2009, 3:28 PM
#18
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

Thank you for your help so long, could you give me one more little help?

Idont konw why my template can't show any thumbnail pictures, which shows normal in other template, do you know how can i solve this.

23 Nov 2009, 9:12 PM
#19
gjh42 avatar

gjh42

Black Belt

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

Re: how to adjust center column width?

I see thumbnails in your product listing pages... don't know where else you were expecting them. Your site does take forever to load, at least partly due to the fact that the thumbnails are just the full size images displayed small, and average 100k in filesize (about 30 times the size they should be). Read the tutorial on images for info on creating proper-sized thumbnail images.

24 Nov 2009, 5:12 PM
#20
paulchui avatar

paulchui

New Zenner

Join Date:
Nov 2009
Posts:
16
Plugin Contributions:
0

Re: how to adjust center column width?

http://img109.imageshack.us/img109/812/helicop2.jpg

Hi you can see there is a thumbnail picture show up, when i use Classic Contemporary Green template