Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Is this possible - changing center column width?

Is this possible - changing center column width?

Locked

Views: 1,707

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 May 2009, 2:44 PM
#1
probello avatar

probello

New Zenner

Join Date:
Feb 2009
Posts:
7
Plugin Contributions:
0

Is this possible - changing center column width?

I have searched everywhere but haven't come up with an answer so I am not sure this is possible.

I would like to have the width of my center column change dynamically based on the browser / resolution the computer is running or possibly a way to change dynamically if there is a way to check for monitor width.

For example, the monitor on my laptop is a 17inch so I would like the width of my center column to reflect that and be wider when viewing on my laptop. Then when I view my website on a machine that has a 12 inch monitor, for example, the width would naturally be more narrow.

Is this possible and if so, how?

Thanks,

Pam

2 May 2009, 6:08 PM
#2
hugozc avatar

hugozc

New Zenner

Join Date:
Apr 2009
Posts:
41
Plugin Contributions:
0

Re: Is this possible - changing center column width?

First, install FIREFOX on your system and then install the add-on called Web Developer >> https://addons.mozilla.org/en-US/firefox/addon/60 ... Also find and install FIREBUG addon ... another great tool.

The change should be easy and is located in your templates Stylesheet.css file ... you can experiment by changing the width to 100% (or 95%, etc. if you want) in the stylesheet.css file.

\includes\templates\TEMPLATE_NAME\css\stylesheet.css

Change all occurrences of 850px (orwhatever it is now) to 100%.

Good luck

5 May 2009, 10:05 AM
#3
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Re: Is this possible - changing center column width?

That works great thanks !

5 May 2009, 10:50 AM
#4
limelites avatar

limelites

Totally Zenned

Join Date:
Jan 2009
Posts:
2,085
Plugin Contributions:
0

Re: Is this possible - changing center column width?

setting mainwrapper to 100% does what you want, but consider what your site may look like on 24" monitors too. Very wide and unnatural.

You should consider a set width around 950px; which is best for all monitor sizes.

5 May 2009, 12:07 PM
#5
probello avatar

probello

New Zenner

Join Date:
Feb 2009
Posts:
7
Plugin Contributions:
0

Re: Is this possible - changing center column width?

thanks for this info. I am out of town all week so I won't have a chance to test it out until the weekend.

Pam