Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Text Spacing on Category boxes

Text Spacing on Category boxes

Views: 555

Results 1 to 4 of 4
15 Mar 2011, 1:12 PM
#1
leest35 avatar

leest35

Zen Follower

Join Date:
May 2010
Location:
London UK
Posts:
134
Plugin Contributions:
0

Text Spacing on Category boxes

Hi,

I want to close the gap between the rows of my category boxes as seen here.

http://www.pestcontrolonline.com/~pestcont/index.php?main_page=index&cPath=29_60

Now i can do this by changing the padding on the CategoryListBoxContents, the only problm i have is when i reduce the gap the text and the images do not move and stay where they are and then of course become off centre exactly. However i can not seem to find where to control them from.

Any help would eb greatly appreciated.

Thanks

15 Mar 2011, 2:03 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Text Spacing on Category boxes

First thing you need to do is get rid of the stylesheetBAK12.08,css file as all files ending in .css are loaded

15 Mar 2011, 2:03 PM
#3
gjh42 avatar

gjh42

Black Belt

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

Re: Text Spacing on Category boxes

Your "backup" stylesheet is what is actually controlling the site, not the "real" stylesheet, mostly. If you want to save a copy of your stylesheet, you need to keep it somewhere else, or rename it like stylesheet.bak; any file that starts with style and ends with .css will be loaded automatically.

stylesheetBak-23.08.css (line 554)

}
.categoryListBoxContents {
margin: 1em 0;
}

stylesheetBak-23.08.css (line 354)

.categoryListBoxContents {
background-image: url("http://95.131.66.39/~pestcont/images/cat_back.png");
background-position: center center;
background-repeat: no-repeat;
color: blue;
font-size: 1.5em;
height: 150px;
padding: 1.5em 0.5em 0.5em;
text-align: center;
width: 150px;
}

15 Mar 2011, 2:10 PM
#4
leest35 avatar

leest35

Zen Follower

Join Date:
May 2010
Location:
London UK
Posts:
134
Plugin Contributions:
0

Re: Text Spacing on Category boxes

Hi,

Thanks I noticed that earlier, i will have to sit down and merge the two, sadly i had a freelancer do some work and this is a result of their handy work.

Anyway u will make the changes and hopefully all will be ok.

Thank you