Results 1 to 5 of 5
  1. #1
    Join Date
    May 2006
    Posts
    31
    Plugin Contributions
    0

    Default Help w/ left side box padding

    Hello,

    With the latest version of ZenCart, I haven't been able to decipher how to adjust the left-padding of my left colum side boxes. I've tried tweeking the following code in stylesheet.css:

    .column_left, .column_right, .column_single {
    background: #ffffff;
    padding: 0px;
    }

    .leftboxcontent, .rightboxcontent {
    line-height: 125%;
    padding: 0px;
    border-top: 0px solid #9a9a9a;
    border-bottom: 0px solid #9a9a9a;

    .main_page{
    width: 100% !important;
    background-color: #ffffff;
    border-right: 1px solid #9a9a9a;
    border-left: 1px solid #9a9a9a;
    border-bottom: 0px solid #9a9a9a;
    /*padding: 5px;*/

    No success with that. I would like to have my left colum flush with the main page border, no padding. Can anyone help? Sincerely,

    Nathan

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Help w/ left side box padding

    Quote Originally Posted by namasa
    Hello,

    With the latest version of ZenCart, I haven't been able to decipher how to adjust the left-padding of my left colum side boxes. I've tried tweeking the following code in stylesheet.css:

    .column_left, .column_right, .column_single {
    background: #ffffff;
    padding: 0px;
    }

    .leftboxcontent, .rightboxcontent {
    line-height: 125%;
    padding: 0px;
    border-top: 0px solid #9a9a9a;
    border-bottom: 0px solid #9a9a9a;

    .main_page{
    width: 100% !important;
    background-color: #ffffff;
    border-right: 1px solid #9a9a9a;
    border-left: 1px solid #9a9a9a;
    border-bottom: 0px solid #9a9a9a;
    /*padding: 5px;*/

    No success with that. I would like to have my left colum flush with the main page border, no padding. Can anyone help? Sincerely,

    Nathan
    You post is slightly contradictory. You say that you've changed these settings in stylesheet.css (which is template_default), but these look like classes from the stylesheet_original.css that is part of the classic template.

    The answer to stylesheet problems almost always proves to be where you're not looking (otherwise you'd have found it yourself), so your posting only really shows where it's not, but gives few clues as to where it is. Do you have a link to the site so that we can see it in context?

  3. #3
    Join Date
    May 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Help w/ left side box padding

    Yes, here's the link: www.shizenshop.com.

    In the previous version of ZenCart I made all of my changes in the stylesheet. Since the upgrade I've been editing stylesheet.css, stylesheet_new.css and stylesheet_original.css trying to solution my design issues. I appreciate you looking in to this. Sincerely,

    Nathan

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Help w/ left side box padding

    OK. I've had a quick look and I think that your immediate problem is nothing to do with your CSS.

    If you look at the code extracted from the HTML that Zen Cart is generating for you, you will see that your left hand column sits within a table cell with a fixed width of 150px. The contents of the column then sit inside a div with a fixed width of 138px and each box inside that also has a pre-defined width of 138px.
    PHP Code:
    <td id="navColumnOne" class="columnLeft" style="width: 150px">
    <
    div id="navColumnOneWrapper" style="width: 138px">
    <!--
    // bof: categories //-->
    <table width="138px" border="0" cellspacing="0" cellpadding="0" class="leftbox" id="categories-table"
    As a result you have boxed of 138px centered in a column of 150px giving you a 6px margin each side. I suspect that you gone into the layout settings page under the Configuration menu in Admin and reduced the Column Width - Left Boxes value at the top but left the Column Width - Left value about 14 lines down, unchanged. Make this 138 too and you shoudl solve your immediate problem. But it will just be the first of many.

    You are using the classic template. I explain here why that's not ideal and link to a better approach.

    However, you are setting yourself up for even more grief than most people because you have added the stylesheet.css to the stylesheet_new.css and the stylesheet_original.css already included in the classic template package. This means you have three stylesheets, with overlapping functionality, competing for your user's browser's attention, and the one that you are editing is called first and so will be the overridden by the others if there's a comflict. I strongly recommend switching to your own template based on the template default before you get in too deep.

  5. #5
    Join Date
    May 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Help w/ left side box padding

    Thanks so much for the help. Very insightful! I've only been working with ZenCart for a few weeks now and have been working off of the eBook "ZenCart - Templates for Beginners." I sincerely appreciate your recommendations!

    Nathan

 

 

Similar Threads

  1. Left Side Box
    By StevenUK in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Dec 2015, 01:18 PM
  2. Remove space on left side of Left Side Box
    By rooisnor in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 2 Nov 2009, 06:50 AM
  3. side box on left hand side 'cut off'
    By Sushigal in forum General Questions
    Replies: 3
    Last Post: 16 Jun 2009, 03:43 PM
  4. Banner Box Margins or padding in side columns
    By gogolf in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 16 Sep 2007, 10:48 PM
  5. How to move the sidebox side ways. from left to more left? realy need help...
    By brekke00 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Aug 2007, 02:38 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