Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default padding between cells in the home page

    Hi,

    v.1.39H

    I have the categories in a single column home display, in a two column fashion, I added border to the .categoryListBoxContents, and it pushed the second column into the next row, thus I reduced the 50% column width following this:
    http://www.zen-cart.com/forum/showthread.php?t=63814
    which worked fine as the second column is now on the same row.

    Problem is the two categories are attached to each other, and I'd like to add a little bit padding in between.

    How can I do that?

    Thank you.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: padding between cells in the home page

    As this can be template dependant
    Where is your install
    Zen-Venom Get Bitten

  3. #3
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: padding between cells in the home page

    Sorry forgot to give link to page:
    amber precious

  4. #4
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: padding between cells in the home page

    I am using the basic template modified by me.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: padding between cells in the home page

    You can try removing the border you currently have and adding this to the bottom of your stylesheet and see if you like it
    Code:
    .categoryListBoxContents img{
    	border: 1px solid #000;
            padding: 1em 5em 1em 5em;
    	}
    Zen-Venom Get Bitten

  6. #6
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: padding between cells in the home page

    I'll try it right now, but doesn't that just wrap the image letting the text out?

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: padding between cells in the home page

    that just wrap the image letting the text out?
    Yes and why I stated see if you like it
    Zen-Venom Get Bitten

  8. #8
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: padding between cells in the home page

    Thanks, I tried it, and indeed it wraps the image only, as I'd like to have both image, and text as a box.

  9. #9
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: padding between cells in the home page

    The way that the space is divided up there is not enogh space to add padding or margins without forcing it to another row
    You could try changing the floor to make it say 25 or so percent and pad the boxes
    Zen-Venom Get Bitten

  10. #10
    Join Date
    May 2009
    Posts
    1,254
    Plugin Contributions
    3

    Default Re: padding between cells in the home page

    Do you mean making the change here:

    includes/modules/CUSTOM/category_row.php

    25 $col_width = floor(100/$num_categories) -1;
    26 } else {
    27 $col_width = floor(100/MAX_DISPLAY_CATEGORIES_PER_ROW) -1;
    28 }

    if yes, shall I change the 100, or the -1 value?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v151 Blank space between images on the home page?
    By sothonod in forum General Questions
    Replies: 14
    Last Post: 28 Jun 2013, 03:36 PM
  2. Padding between EZ page menu items
    By tsheridan in forum General Questions
    Replies: 4
    Last Post: 14 Dec 2011, 02:04 AM
  3. Change padding around home page Category icons/thumbs
    By habsolutely in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 28 Sep 2011, 07:23 PM
  4. padding between image and text on products page
    By wotnow in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 1 Aug 2010, 12:15 PM
  5. Reduce the padding between center box and sideboxes
    By JimmyV in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Mar 2008, 06:11 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