Forums / Templates, Stylesheets, Page Layout / Shortcut to middle column design

Shortcut to middle column design

Locked

Views: 1,061

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
3 Oct 2008, 8:01 PM
#1
nowhere avatar

nowhere

New Zenner

Join Date:
Oct 2008
Posts:
14
Plugin Contributions:
0

Shortcut to middle column design

If you have a look at my site : https://www.tonquebec.com

you'll notice that my left and right columns have a sort of flipped corner paper design to them. I am currently trying to apply the same design to ALL pages for the middle column, like in http://www.tonquebec.com/index.php?main_page=product_info&products_id=46

The problem is that I have to edit all the tpl pages for this effect to be applied and I was wondering if there was one main php file I could edit so as to avoid going through the 50 or so tpl page adding the tables and graphics.

3 Oct 2008, 8:39 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Shortcut to middle column design

It looks like you've fallen into the 'when all I have is a hammer, everything looks like a nail' trap.

You should be able to do what you want to do without changing the CSS-based Zencart includes to an old-fashioned table layout.

The sidebox and center column header images can be specified in the stylesheet, as can borders for those areas. It may not end up looking exactly like your example, but it could be very close.

3 Oct 2008, 11:42 PM
#3
nowhere avatar

nowhere

New Zenner

Join Date:
Oct 2008
Posts:
14
Plugin Contributions:
0

Re: Shortcut to middle column design

stevesh:

It looks like you've fallen into the 'when all I have is a hammer, everything looks like a nail' trap.

You should be able to do what you want to do without changing the CSS-based Zencart includes to an old-fashioned table layout.

The sidebox and center column header images can be specified in the stylesheet, as can borders for those areas. It may not end up looking exactly like your example, but it could be very close.

The problem is that I need to make tables.

And it needs to look exactly like the sideboxes because this is part of a network of sites that have the same layouts and designs.

I would love for there to be a simple CSS solution, but I don't know how to build tables in CSS :(

4 Oct 2008, 12:47 AM
#4
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Shortcut to middle column design

NoWhErE:

The problem is that I need to make tables.

And it needs to look exactly like the sideboxes because this is part of a network of sites that have the same layouts and designs.

I would love for there to be a simple CSS solution, but I don't know how to build tables in CSS :(

Create 2 images for your center boxes

and add the following to your stylesheet.css

.centerBoxWrapper {
margin: 0;
background-image:url(../images/title_cap_left.gif);
background-repeat:no-repeat;
background-position:top left;

}

.centerBoxHeading {
margin: 0;
height:32px;
background-image:url(../images/title_cap_right.gif);
background-repeat:no-repeat;
background-position:top right;

padding: 0.5em 0.2em;
}

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Oct 2008, 1:59 AM
#5
nowhere avatar

nowhere

New Zenner

Join Date:
Oct 2008
Posts:
14
Plugin Contributions:
0

Re: Shortcut to middle column design

clydejones:

Create 2 images for your center boxes

and add the following to your stylesheet.css

.centerBoxWrapper {
margin: 0;
background-image:url(../images/title_cap_left.gif);
background-repeat:no-repeat;
background-position:top left;

}

.centerBoxHeading {
margin: 0;
height:32px;
background-image:url(../images/title_cap_right.gif);
background-repeat:no-repeat;
background-position:top right;

padding: 0.5em 0.2em;
}

thats great info!!!

my only problem is if I do that my page wont't be adujstable anymore (i.e if someone changes the size of the window)

4 Oct 2008, 2:14 AM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: Shortcut to middle column design

Use the sliding door technique - that is one image(the right cap) is a fixed width say 20w x 30h the other (the left cap) would be say 1500w x 30h.

This will allow them to fill the space they need.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Oct 2008, 2:16 AM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: Shortcut to middle column design

Notice the "top left" and "top right" in the CSS above? Those specify that one background image sticks to the top left of the box, and the other sticks to the top right. When the page stretches, the images follow the box corners.
As long as the .centerBoxWrapper bg is long enough to fill the largest possible width, the box will appear to seamlessly stretch.

4 Oct 2008, 2:21 AM
#8
nowhere avatar

nowhere

New Zenner

Join Date:
Oct 2008
Posts:
14
Plugin Contributions:
0

Re: Shortcut to middle column design

gjh42:

Notice the "top left" and "top right" in the CSS above? Those specify that one background image sticks to the top left of the box, and the other sticks to the top right. When the page stretches, the images follow the box corners.
As long as the .centerBoxWrapper bg is long enough to fill the largest possible width, the box will appear to seamlessly stretch.

Oooh I never used that technique before.

It makes alot more sense!

Thats going to save me ALOT of time.

Thanx!

4 Oct 2008, 2:54 AM
#9
rossington31 avatar

rossington31

New Zenner

Join Date:
Jul 2008
Posts:
1
Plugin Contributions:
0

Re: Shortcut to middle column design

Hi,

I have had image handler installed in my zen-cart when I edit an image and try to use image handler to add images I get this message:

Warning: move_uploaded_file(/home/bellabel/public_html/images/medium/lulucandydress_03_MED.png) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/bellabel/public_html/admin/includes/ih_manager.php on line 191

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpzbsPb2' to '/home/bellabel/public_html/images/medium/lulucandydress_03_MED.png' in /home/bellabel/public_html/admin/includes/ih_manager.php on line 191
Error TEXT_MSG_NOUPLOAD_MEDIUM

I am a complete novice and have no idea what this means - the lady who installed image handler couldn't work it out either.

I am hoping beyond hope that someone might know what the problem is and help me fix it.

I would really appreciate it.

Many thanks,
Vicki

4 Oct 2008, 3:01 AM
#10
nowhere avatar

nowhere

New Zenner

Join Date:
Oct 2008
Posts:
14
Plugin Contributions:
0

Re: Shortcut to middle column design

I just encountered a small problem.

have a look at the site : https://www.tonquebec.com and you'll see my problem.

The header is 1 row, the wrapper is another row. But the top left corner, I can't seemlessly integrate it using the sliding door technique.