Zen Cart Logo
Forums / General Questions / Product Listing--spacing between

Product Listing--spacing between

Locked

Views: 3,229

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
9 Jan 2007, 3:27 AM
#1
splishsplashbb avatar

splishsplashbb

Zen Follower

Join Date:
Dec 2006
Location:
kenner, la
Posts:
110
Plugin Contributions:
0

Product Listing--spacing between

ok if you go to http://luvnbubbles.com/shop/index.php?main_page=index&cPath=1_15

it should bring up the catagory bubble bath listing the products is their a way to make the spacing in between each one a bit bigger. if your not sure what i mean if you look at the Bubbles of love 1oz first one listed and the one below it their is no spacing in between and makes the pics looks like they are overlapping

any help would be great

maggie

9 Jan 2007, 4:37 AM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Listing--spacing between

You can add spacing in the stylesheet. Add this code and tweak to your heart's content:

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

The padding also controls clearance between elements of each product, and you can set that separately by adding another value:
padding: 0.5em 1em;
The first value is top & bottom, the second is left & right.

6 Feb 2007, 8:47 AM
#3
gabenn2 avatar

gabenn2

Zen Follower

Join Date:
Feb 2007
Posts:
109
Plugin Contributions:
0

Re: Product Listing--spacing between

THANK YOU!!!!!!!

I have been searching for days on how to fix this problem! Thanks

26 Feb 2007, 7:47 PM
#4
chris10 avatar

chris10

New Zenner

Join Date:
Feb 2007
Posts:
42
Plugin Contributions:
0

Re: Product Listing--spacing between

My preview images are overlapping and I tried the code that was pasted here but it's not working for me. Any suggestions?

Example

26 Feb 2007, 8:16 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Product Listing--spacing between

You are looking at the additional images, which are controlled by completely different selectors.
#productAdditionalImages is the whole block of images;
.additionalImage covers each individual image.

In my 800x600 monitor, they overlap by 50px or so and the right one spills over the sidebox. Maybe your images are too big to fit in the probably 33% width the code is specifying? Have you tried two images per row?

27 Feb 2007, 4:07 AM
#6
chris10 avatar

chris10

New Zenner

Join Date:
Feb 2007
Posts:
42
Plugin Contributions:
0

Re: Product Listing--spacing between

I have no idea how to only have 2 images per row. I tried to do that in the stylesheet but nothing is working. I thought I finally had the hang of everything but now it seems like spacing is my problem. Not just with the additional images but also on another page. I can't even get to seperate paragraphs. I made seperate paragraphs in ez-pages but when I view it on my site the spaces disappear. I have no idea why...

Like on this page there was supposed to be the first 2 banners then I hit enter twice so there would be an empty line before the text but that disappeared too.

example

27 Feb 2007, 4:18 AM
#7
chris10 avatar

chris10

New Zenner

Join Date:
Feb 2007
Posts:
42
Plugin Contributions:
0

Re: Product Listing--spacing between

Fixed it...there's a setting in admin to decide how many images per row. Thank you for the help!

27 Feb 2007, 10:08 PM
#8
jund avatar

jund

Zen Follower

Join Date:
Sep 2006
Location:
Ruckersville, VA, USA
Posts:
276
Plugin Contributions:
0

Re: Product Listing--spacing between

Glenn,

That is a great ix! It is not only effective, but it has class as well. Thank you for posting this fix. You done real good.

John Underwood, jund

17 Nov 2008, 10:08 PM
#9
anna_maria avatar

anna_maria

New Zenner

Join Date:
May 2006
Posts:
15
Plugin Contributions:
0

Re: Product Listing--spacing between

This fix has worked great for me also. thanks guys :clap:

28 Nov 2008, 8:25 AM
#10
talhaa avatar

talhaa

New Zenner

Join Date:
Jun 2008
Posts:
3
Plugin Contributions:
0

Re: Product Listing--spacing between

I've been trying to fix this strange issue in IE for hours. If you click on the page below, if you are in firefox everything looks fine. Product image and Product price + Product Name all are flushed left.
But if you view in IE, Product Name is centered in the row which is very distant from the image on the left. I tried to give this "td" a new class name ".main1" and set it's margin-left: -50px; and tried other sorts of things nothing worked. I need urgent help please. Thanks
http://www.blossomberry.net/index.php?main_page=products_all

28 Nov 2008, 12:06 PM
#11
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Product Listing--spacing between

Your source shows the productlisting-odd and -even <td> as having a width of 110, which is pushing the other image over that far in IE. I'm not sure where it's coming from, but it may have to do with how many columns you've specified, if you have the Column Grid mod installed.

2 Sep 2010, 9:27 AM
#12
ericjbailey avatar

ericjbailey

New Zenner

Join Date:
Sep 2010
Posts:
1
Plugin Contributions:
0

Re: Product Listing--spacing between

gabenn2:

THANK YOU!!!!!!!

I have been searching for days on how to fix this problem! Thanks

I would like to say thank you too, been looking for the answer :smile: