Forums / Templates, Stylesheets, Page Layout / Center column width/height in pixels

Center column width/height in pixels

Locked
Results 1 to 6 of 6
This thread is locked. New replies are disabled.
19 Oct 2009, 14:40
#1
cp00 avatar

cp00

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Center column width/height in pixels

Hi,

I need to put an external form into my newly developed zen cart site, so I need to provide the width and height for the form to fit. What I found configured in my site is: .main_t{width:950px; defined in stylesheet, column width - left boxes at 186 px and column width - right boxes at 178 defined in Admin/Configuration/Layout settings. Am I right to think that the center column width should be what is left by deducting the side columns from the total width, i.e. 586 px?

Thanks.
19 Oct 2009, 17:31
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: Center column width/height in pixels

Ordinarily, the center column width would be the width specified in #mainWrapper, less the right and left column widths specified in Admin. Your Template Monster template may do things differently, so we'd need a link to your site to know for sure.
19 Oct 2009, 19:54
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: Center column width/height in pixels

Specifically, some TM templates add spacer <td> elements between side columns and center column (haven't they learned anything about layout styling in the last 10 years or so? :)

Also (possible with any template) #navColumnOne etc. can have margins or padding which will increase the overall sidebar occupied width beyond the admin settings.
20 Oct 2009, 06:33
#4
cp00 avatar

cp00

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Center column width/height in pixels

Thank you for the contribution. Indeed, it's a Template Monster template and the website in development is here: http://www.xn----7sbeocpcbufeok3buh.com/ I'll replace the featured products listed on home page with an external form or maybe I'll just fit in the form before them, but I need to keep the same layout, hence I have to provide correct size settings for the external form.

I couldn't find any specific figures for #mainWrapper or #navColumnOne, though I'm not completely sure I've looked in all possible places. Any further help would be greatly appreciated. This is my first Zen Cart site, I have some experience with OsCommerce though.
20 Oct 2009, 09:48
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Posts:
19,793
Plugin Contributions:
2

Re: Center column width/height in pixels

Generally, with TM templates, you'll need to use the Web Developer plugin for Firefox to see how they have named the various page elements so you can find them in the stylesheet.
20 Oct 2009, 13:34
#6
cp00 avatar

cp00

New Zenner

Join Date:
Oct 2009
Posts:
12
Plugin Contributions:
0

Re: Center column width/height in pixels

stevesh,

This Web Developer plugin for Firefox really solved my problem - great utulity, indeed. Thanks.