Forums / Templates, Stylesheets, Page Layout / Can't get padding to work on product listing

Can't get padding to work on product listing

Locked

Views: 1,247

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
24 Feb 2008, 9:42 PM
#1
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Can't get padding to work on product listing

Hello,

On my product listing page, I am trying to add some padding in between each product so that is more clear which price and button belong to which product.

I added:
.productListing-odd, .product-Listing-even {
padding-bottom: 20px;
}
to my stylesheet, and in Firebug I can see that it IS applying the padding, but for some reason it is also allowing the next item to start within the padding area instead of moving it down. I also tried margin to no avail.

All I want is more space between the items. I have search the stylesheet to see if something else might be affecting this, but I must be missing something. :frusty:

Link to my page in question:
http://www.harmonyyogaannarbor.com/zencart/index.php?main_page=index&cPath=3

You can look at this without having to log in... thanks!

Karen

24 Feb 2008, 11:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't get padding to work on product listing

Try this and adjust to suit

.productListing-data {
padding-bottom: 5em;
}

Zen-Venom Get Bitten

25 Feb 2008, 12:37 AM
#3
brightgirl avatar

brightgirl

New Zenner

Join Date:
Feb 2008
Location:
Ann Arbor, MI
Posts:
26
Plugin Contributions:
0

Re: Can't get padding to work on product listing

Kobra,

Thank you!

Now can you explain to me WHY that worked and why what I was trying to do didn't work... you know, just for the betterment of my coding skills... :D

Karen

25 Feb 2008, 1:54 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Can't get padding to work on product listing

.productListing-odd, .product-Listing-even I think are not used or at least not for this

Zen-Venom Get Bitten

25 Feb 2008, 2:18 AM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Can't get padding to work on product listing

They certainly are there, but ?perhaps due to their being table row elements? they don't respond to margin or padding, even with !important added. You can apply color to them just fine.