Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2008
    Posts
    14
    Plugin Contributions
    0

    Default Shortcut to middle column design

    If you have a look at my site : 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?m...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.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default 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. #3
    Join Date
    Oct 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Shortcut to middle column design

    Quote Originally Posted by stevesh View Post
    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. #4
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Shortcut to middle column design

    Quote Originally Posted by NoWhErE View Post
    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;
    }

  5. #5
    Join Date
    Oct 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Shortcut to middle column design

    Quote Originally Posted by clydejones View Post
    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)

  6. #6
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default 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.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.

  8. #8
    Join Date
    Oct 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Shortcut to middle column design

    Quote Originally Posted by gjh42 View Post
    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!

  9. #9
    Join Date
    Jul 2008
    Posts
    1
    Plugin Contributions
    0

    Default re-image handler

    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

  10. #10
    Join Date
    Oct 2008
    Posts
    14
    Plugin Contributions
    0

    Default Re: Shortcut to middle column design

    I just encountered a small problem.


    have a look at the site : 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.

 

 

Similar Threads

  1. Middle Column width not set
    By Andi98640 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 23 Dec 2010, 11:01 PM
  2. Middle column alignment problem.
    By drtalamantes in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Jun 2009, 11:40 AM
  3. Middle column
    By freerangepc in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Apr 2007, 10:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg