Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    157
    Plugin Contributions
    0

    Default Re: How do I resize center column when left and/or right sidebars are disabled?

    Quote Originally Posted by tat2nu View Post
    From the admin page look under the 'Configuration' tab then scroll down and click the 'Layout Settings' button.

    In the 'layout settings' page look down and you can control your right and left columns there with 'Column Right Status - Global' and 'Column Left Status- Global'. When the column are turned off here then they allow the 'Center Column' to take up that space.

    Marc
    THis will not work because those settings are GLOBAL. I do not want the side columns turned off globally at all.

    The problem is as you see in my prior post, when I turn off the left and/or right columns the center column does not resize automatically, least not with wordpress.

  2. #2
    Join Date
    Jan 2005
    Posts
    186
    Plugin Contributions
    0

    Default Re: How do I resize center column when left and/or right sidebars are disabled?

    From what I have learned is that they are either 'on' or 'off' globally. You can have pages with nothing in the column but the column will still be there. This fixes your column alignment issue in stylesheeet.css

    Code:
    .outer {
        padding-left: 197px; /* Same width as margin-left for the float-wrap div */
        padding-right: 182px; /* Our right column width */
    }
    .inner {
        width: 100%;
    }
    .float-wrap {
        float: left;
        width: 97%;
        margin-left: -197px; /* Same length as .outer padding-left but with negative value */
    }
    #content {
        float: right;
        margin-right: -197px; /* Same length as .outer padding-left but with negative value */
        width: 100%;
        line-height:1.6;
        position: relative; /* IE needs this  */
    }
    .contentWrap {
        padding: 5px 0 5px 5px;
    }
    #navColumnOne {
        float: left;
        position: relative; /* IE needs this  */
    }
    #navColumnTwo {
        float: right;
        margin-right: -182px; /* This negative margin-right value is in this example the same as the right column width. */
        position: relative; /* IE needs this  */
    }
    * html #navColumnTwo {
        margin-right: -202px !important; /* Fixes IE6 Issue */
    }
    /* end wrappers - page or section containers*/
    Post in the Cherry_Zen template thread and see if there is a solution to get the center box to expand in the absence of a sidebox. The link is here:

    http://www.zen-cart.com/forum/showthread.php?t=72703

    Marc

  3. #3
    Join Date
    Apr 2009
    Posts
    13
    Plugin Contributions
    0

    Default Re: How do I resize center column when left and/or right sidebars are disabled?

    Thanks, I got it.

 

 

Similar Threads

  1. Can I add Categoy links left and Right column around center column?
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2010, 06:06 PM
  2. Can't center Body on Page. ColumnOne and center r left and columntwo is right
    By mariasims in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 9 Jun 2010, 08:14 AM
  3. Right & left column differences, plus center issues`
    By Moebiusenterprises in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Aug 2007, 06:06 AM
  4. center boxes in left and right column
    By chelseagirl in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Sep 2006, 01:34 AM

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