Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default Adding space in between items

    my product images are really close together. I would like to add some white space between them. Where would I do this?? Is is possiable?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding space in between items

    In your stylesheet (/includes/templates/your_template/css/stylesheet.css), add

    /* space & border between listing items */
    .productListing-odd td, .productListing-even td {
    text-align: left;
    vertical-align: top;
    padding:0.5em;
    margin-bottom: 1em;
    border-bottom: 3px double #aaccbb;
    }

    Change numbers, add, edit or delete properties as desired.

  3. #3
    Join Date
    Apr 2007
    Posts
    8
    Plugin Contributions
    0

    Default Re: Adding space in between items

    thank you, that worked wonderfully.

  4. #4
    Join Date
    May 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Adding space in between items

    Quote Originally Posted by gjh42 View Post
    In your stylesheet (/includes/templates/your_template/css/stylesheet.css), add

    /* space & border between listing items */
    .productListing-odd td, .productListing-even td {
    text-align: left;
    vertical-align: top;
    padding:0.5em;
    margin-bottom: 1em;
    border-bottom: 3px double #aaccbb;
    }

    Change numbers, add, edit or delete properties as desired.
    This works ideally. But as All Products uses the same classes .productListing-odd & -even, the border shows surrounding the description. Is there any way to only add the border to the product listing?

    Thanks!

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Adding space in between items

    Change the selectors to

    #indexProductList .productListing-odd td, #indexProductList .productListing-even td

    and it will only affect categoriy listings.

  6. #6
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Adding space in between items

    Thanks everybody for the helpful info....
    Uh, what I had more in mind for spacing is like this page in the Wallet template.... what CSS code does this setup? ....METOOTECH

    http://(sorry, site offline)/137/ind...146f6be279be17

  7. #7
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: Adding space in between items

    I forgot to add in the last post, how is the background color change on every other listing done? METOOTECH

  8. #8
    Join Date
    May 2007
    Location
    Yorkshire UK
    Posts
    53
    Plugin Contributions
    0

    Default Re: Adding space in between items

    Glenn thanks for this I have been trying to work this out for ages
    chrisx

  9. #9
    Join Date
    Jun 2007
    Posts
    145
    Plugin Contributions
    0

    Default Re: Adding space in between items

    Thanks, from a CSS and Zen Cart newbie.

    Worked a treat for my site!

 

 

Similar Threads

  1. space between items in sidebox
    By finlander in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 19 Nov 2010, 09:52 AM
  2. Increasing space between items in sidebox
    By HandcraftedUK in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 May 2007, 10:29 PM
  3. Increasing space between sidebox items
    By HandcraftedUK in forum General Questions
    Replies: 0
    Last Post: 15 Oct 2006, 01:55 PM
  4. Increasing space between items in sidebox
    By HandcraftedUK in forum General Questions
    Replies: 2
    Last Post: 15 Oct 2006, 01:17 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