Zen Cart Logo

Centering column 2?

Locked

Views: 1,249

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
30 Jan 2010, 4:48 PM
#1
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Centering column 2?

Hi folks,

Firstly great community you got here, I've been searching/reading the wikis loads to get me started! But I've hit a brick wall, I cannot find a thread/wiki about centering the middle column (column 2) of all pages. I've seen in admin you can control the size/position/existence of column 1 & 3 on the left and right, but the not the centre one! So at the moment I have:

Column 1: ON, 150px
Column 2: ON, Left alignment
Column 3: OFF

To explain what I mean, here's my shop so far: Link

And here's an example of a live shop I found off the Zen site directory, that has a central middle column and matching side column (albeit right not left but the positioning is still good): Link

I want to do this so that it looks more central and aligned, and also so I can upload a decent background!

Many, many thanks for any help! :smile:

30 Jan 2010, 5:12 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering column 2?

You or your template has altered what is contained in the mainWrapper container so it is not responding as a default would
Suggest you look at if you have edited the tpl_main_page.php file

30 Jan 2010, 5:18 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Centering column 2?

Add to your stylesheet```
.centerColumn {text-align: center;}

30 Jan 2010, 5:26 PM
#4
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Yay! Thank you kindly!

31 Jan 2010, 9:16 AM
#5
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Okay I'm still having trouble to centre the whole lot, if you know what I mean?

Sites here and here, have it how I want it! I would like the empty whitespace down the left and right so all the content/both columns are in the middle.

Could it be the % in the mainWrapper?

31 Jan 2010, 10:44 AM
#6
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Hmm can't seem to edit my post above, so I'll post again.

I'm making progress but could do with a spot more help:

  1. How can I move the bottom EZ bar to the centre with the other EZ bar?
  2. How can I make all links red (#e3492e)?
  3. How can I bring the left column into the centre to the left of the main image?

Cheers for the help!

31 Jan 2010, 12:23 PM
#7
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Okay I've managed to do most of it, now background images is the next step!

31 Jan 2010, 5:19 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering column 2?

bertles86:

Okay I'm still having trouble to centre the whole lot, if you know what I mean?

Could it be the % in the mainWrapper?
You are finding this more difficult as I stated
KoBra:

You or your template has altered what is contained in the mainWrapper container so it is not responding as a default would

31 Jan 2010, 5:41 PM
#9
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Hi Kobra,

Yup I figured that, so I switched it to a new template and it's working now!

Any idea where I can change the field names in the My Account creation page?

i.e. "State/Province" becomes "County" and "Post/Zip Code" becomes "Postcode" etc...

31 Jan 2010, 5:47 PM
#11
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Centering column 2?

Learn to use the "Developer Toolkit" under Admin >>> Tools .

Use the text string you don't want (or a part of it) as the search keyword. In your case... State/Province

This will return a list of files where that string occurs. In MOST cases, you will need to apply edits to files where your text string is part of a DEFINE statement.

You DO NOT change the define constant (ALL_THE_UPPERCASE_WORDS)...

... just the variable - the part between the second set of single quotes.

  define('ENTRY_STATE', 'State/Province:');
  define('ENTRY_STATE', 'County:');
31 Jan 2010, 5:49 PM
#12
bertles86 avatar

bertles86

New Zenner

Join Date:
Jan 2010
Location:
United Kingdom
Posts:
46
Plugin Contributions:
0

Re: Centering column 2?

Thanking you kindly, both of you!