Results 1 to 10 of 13

Hybrid View

  1. #1
    Join Date
    Dec 2006
    Posts
    13
    Plugin Contributions
    0

    Default Expanded Category Sidebox, spacing between categires

    Hi,
    With http://www.zen-cart.com/index.php?ma...roducts_id=392

    Is it possible to add separation space between categories?

    Category 1
    + sub-category
    + sub-category
    <insert additional space here>
    Category 2

    I looked at the CSS styles, but there are only class names for the <a> link and they are not block-level elements, so padding,margin settings don't seem to work. Could the code be updated to include a div or other block element around the categories so that padding/margin can be added in the css?

    thanks!
    -justin

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Expanded Category Sidebox, spacing between categires

    I am not much for design but wouldn't you add spacing or padding to the:
    A.category-top, A.category-top:visited {
    color: #008000;
    text-decoration: none;
    }
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

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

    Default Re: Expanded Category Sidebox, spacing between categires

    Yes, you can add padding to these elements:

    A.category-top, A.category-top:visited {
    color: #008000;
    text-decoration: none;
    padding-bottom: 10px;
    }

    or you could try this:

    #categorylistbox .category-top a {
    color: #008000;
    text-decoration: none;
    padding-bottom: 10px;
    }

  4. #4
    Join Date
    Dec 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Expanded Category Sidebox, spacing between categires

    Thanks for the feedback. The above examples didn't work, so after a bit of research:
    http://www.w3.org/TR/REC-CSS2/box.html#box-dimensions
    http://www.w3.org/TR/REC-CSS2/visuren.html#q5

    Here is what worked the best for me (it could be made simpler, but I explicitly stated margin vs padding):

    .category-top {
    display:block;
    /*uncomment to help with visual display
    border-width:1px;
    border-style:dashed;
    */
    padding-top:0px;
    padding-bottom:0px;
    margin-top:10px;
    margin-bottom:0px;
    }

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

    Default Re: Expanded Category Sidebox, spacing between categires

    Glad you got it solved and I'm sure the information will benefit others as well.

  6. #6
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: Expanded Category Sidebox, spacing between categires

    This has worked perfectly for me too, thanks!

    My only other query is how can I now centre the category titles? I feel they may look better if centred, especially the ones that appear on two lines.

    Thanks

 

 

Similar Threads

  1. v151 Reduce spacing between items in category
    By ExtensiveEnterprises in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Mar 2014, 09:38 PM
  2. Spacing between products in category
    By wasabi555 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Oct 2012, 08:57 PM
  3. Expanded Category List Sidebox - How to Sort?
    By Jeff G in forum Addon Sideboxes
    Replies: 0
    Last Post: 2 May 2010, 09:37 PM
  4. Spacing between Category Name & Category Description
    By raunharman in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Dec 2007, 11:31 PM
  5. Expanded category sidebox show all...even inactive products
    By hubert in forum Basic Configuration
    Replies: 0
    Last Post: 2 Dec 2006, 12:08 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