Results 1 to 10 of 3244

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Cherry Zen Template Support Thread

    got a link where it can be seen?
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cherry Zen Template Support Thread


  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Cherry Zen Template Support Thread

    Thats already dealt with in the stylesheet:
    Code:
    #nw {
    	text-align:left;
    	vertical-align:top;
    	margin:0 auto;
    }
    The margin:0 auto; will deal with automatically centering the site for you regardless of the width setting.

    If you go to a fixed width, edit the following code:
    Code:
    #nw {
    	width:80%; /* main site width; if you'd prefer a fixed width site, enter the width in px here. */
    	max-width:1300px; /* prevents the main content from getting wider than 1300px in sites other than IE */
    	min-width:1000px; /* this prevents the main content from getting smaller than 1000px in browsers OTHER THAN IE. You can make this as small as 800px, BUT any smaller than that, and the top header menu will break into two lines. Also, if you make this width 800px, you will need to make sure your product image on the product info page is no wider than 190px */
    }
    /* IE only. Controls Width of Site and Main Content*/
    * html #nw {
     width:expression((d=document.compatMode=="CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 1300? "1300px" : d.clientWidth > 1048? "80%" : d.clientWidth < 1048? "1000px" : "80%")); /* this prevents the site from getting smaller than 1000px or wider than 1300px in IE */
    }
    /* end IE only */
    /* end site and main content width section */
    And if you go fixed width you can probably collapse all of that code to the following:
    Code:
    #nw {width:960px;}
    You can set that px width to whatever you want
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Cherry Zen Template Support Thread

    Already tried that, didn't work.

    If I change #nw {width:80%; to #nw {width:950px; nothing happens, even if I remove the rest of the section. I can fix the width by changing html>body {width: auto; to html>body {width: 950px;, but the site doesn't center.

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Cherry Zen Template Support Thread

    I see, I played with it in firebug.....apparently your test site there is missing the #nw div which should be wrapping it to be able to set the size......
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  6. #6
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Cherry Zen Template Support Thread

    I believe I see the problem.......check the includes/templates/cherry_zen/common/tpl_header.php for the following lines: (should be lines 20-25)
    Code:
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    <!-- divs for drop shadow -->
    <div id="nw"><div id="ne"><div id="se"><div id="sw"><div id="n"><div id="s"><div id="w"><div id="e"><div id="main"><table id="workaround"><tr><td>
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  7. #7
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,888
    Plugin Contributions
    0

    Default Re: Cherry Zen Template Support Thread

    @enginarat

    Your problem is the complete opposite of the posts above this one.....

    you will want to make the following section in the stylesheet:
    Code:
    #nw {
    	width:96%; /* main site width; if you'd prefer a fixed width site, enter the width in px here. */
    	max-width:1300px; /* prevents the main content from getting wider than 1300px in sites other than IE */
    	min-width:1000px; /* this prevents the main content from getting smaller than 1000px in browsers OTHER THAN IE. You can make this as small as 800px, BUT any smaller than that, and the top header menu will break into two lines. Also, if you make this width 800px, you will need to make sure your product image on the product info page is no wider than 190px */
    }
    /* IE only. Controls Width of Site and Main Content*/
    * html #nw {
     width:expression((d=document.compatMode=="CSS1Compat" ? document.documentElement : document.body) && (d.clientWidth > 1300? "1300px" : d.clientWidth > 1048? "80%" : d.clientWidth < 1048? "1000px" : "80%")); /* this prevents the site from getting smaller than 1000px or wider than 1300px in IE */
    }
    /* end IE only */
    /* end site and main content width section */
    Read as below:

    Code:
    #nw {width: 100%;}

    and in your case it will work because you do have the drop shadow divs in place......
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

 

 

Similar Threads

  1. Simple Zen Template - Support Thread
    By jettrue in forum Addon Templates
    Replies: 461
    Last Post: 27 Apr 2013, 01:33 AM
  2. Fresh Zen -- JellyFish Template Support Thread
    By magicbox in forum Addon Templates
    Replies: 93
    Last Post: 11 Apr 2012, 08:54 AM
  3. Free Template "Future Zen" v1.2 Support Thread
    By kuroi in forum Addon Templates
    Replies: 69
    Last Post: 16 Jul 2010, 06:00 AM
  4. Mix Cherry Zen Template with Default template
    By Globie in forum General Questions
    Replies: 1
    Last Post: 31 Oct 2008, 08:21 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