Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / increase gap at bottom of product listing page before 'new products for' box

increase gap at bottom of product listing page before 'new products for' box

Locked

Started by sushigal on 9 Jun 2009, 11:41 AM · Views: 908

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
9 Jun 2009, 11:41 AM
#1
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #1 by sushigal

Hi,

I'd really like to know how to increase the gap between the last product at the bottom of the page on all the products listings page and the 'new products for june...' box.

Thanks

9 Jun 2009, 3:05 PM
#2
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #2 by niccol

The <div> that hold the product listing is called #productListing.

So, add a style into your stylesheet.css file that says something like:

#productListing{margin-bottom:100px;}

It can go anywhere in the file.

Your stylesheet should be at includes / templates / YOUR TEMPLATE / css /

Nik

Nick
iszent.com

9 Jun 2009, 3:47 PM
#3
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #3 by sushigal

Thank you so much! That works perfectly :D

I'm wondering if you may be able to help with this also;

my website is at; http://www.thegreatgiftshop.co.uk/zencart/

It's a question just about the homepage, as you can see ive made the background a very pale yellow/cream colour but there's still white around this ie behind the side boxes and I'd like this white space to be the same cream colour also. But I don't want all of the white space on the homepage to be cream, ie the top bit above the bit thats white with 'home'

I've included an image to show which section I want cream and which to remain white.

11 Jun 2009, 11:08 AM
#4
niccol avatar

niccol

Totally Zenned

Join Date:
Apr 2009
Posts:
2,138
Plugin Contributions:
1

Post #4 by niccol

Wow I am havign problems seeing that on this laptop. Iblame it on the poor screen and not my ageing eyes!

I have attached a screenshot with some particularly horrible colours. If this demonstrates what you want then this is how to do it:

Firstly add the following styles to the bottom of the stylesheet

#headerWrapper{background-color:yellow;}
#contentMainWrapper{background-color:pink;}

I thought this would do it but somewhere in your stylesheet you have background colors assosciated to #navBreadCrumb and #indexCategories. So, either change those existing rules (you can just delete the background color statement from them ) or add at the bottom of the stylesheet:

#navBreadCrumb{background-color:pink;}
#indexCategories{background-color:pink;}

This will overwrite them. It is messier so it is better to go back and find where you have set the colours for these two divs and either set it to pink or delete the color part of the rule. Actually, you can probably find a better place to put the top two rules too but I was lazy and put them at the bottom.

Obviously I am not suggesting that you keep the pink and yellow!

Nick

Nick
iszent.com

11 Jun 2009, 12:33 PM
#5
sushigal avatar

sushigal

Zen Follower

Join Date:
Mar 2009
Posts:
435
Plugin Contributions:
0

Post #5 by sushigal

Thanks, I deleted the background statments for navbreadcrumb and indexcategories and put in the #headerWrapper{background-color:yellow;}
#contentMainWrapper{background-color:pink; at the bottom of the stylesheet and thats done it.

Thank you so much! :clap: