Forums / Templates, Stylesheets, Page Layout / How do I put boxes around my category images?

How do I put boxes around my category images?

Locked

Views: 1,134

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
28 Sep 2009, 4:52 PM
#1
matt_smith avatar

matt_smith

Zen Follower

Join Date:
Oct 2008
Posts:
108
Plugin Contributions:
0

How do I put boxes around my category images?

Hi

I would like to have boxes around the category images on my homepage. Searched the forums for an answer but no luck. Can anyone help? Do I need to download an add-on or is there something I can do in css?

Thanks

Matt :ohmy:

28 Sep 2009, 5:41 PM
#2
niccol avatar

niccol

Totally Zenned

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

Re: How do I put boxes around my category images?

In your stylesheet add the rule:

#indexHomeBody .categoryListBoxContents img{
border:2px solid red;
}

Obviously change the thickness and the color to whatever you want.

Nick
iszent.com

28 Sep 2009, 6:38 PM
#3
matt_smith avatar

matt_smith

Zen Follower

Join Date:
Oct 2008
Posts:
108
Plugin Contributions:
0

Re: How do I put boxes around my category images?

Thanks.

But not sure exactly where in the stylesheet I should add this. Also for a certain colour can i use a hex colour number such as ffffcc.

Thanks a lot.

Matt:lamo:

28 Sep 2009, 7:18 PM
#4
niccol avatar

niccol

Totally Zenned

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

Re: How do I put boxes around my category images?

That rule you could put pretty much anywhere in the stylesheet! But at the bottom is always a good bet unless you can find something similar to group it with. (The order of the rules has a structure so if you can find it's correct place then all well and good. If not put it at the bottom.)

The rule would look like this:

Code:

#indexHomeBody .categoryListBoxContents img{
border:2px solid #ffffcc;
}

Nick
iszent.com

30 Sep 2009, 9:14 AM
#5
matt_smith avatar

matt_smith

Zen Follower

Join Date:
Oct 2008
Posts:
108
Plugin Contributions:
0

Re: How do I put boxes around my category images?

Thanks so much for your help. Just one other query. How do I adjust the spacing between the category boxes. I would like to almost merge them together.

Thanks

Matt

30 Sep 2009, 9:23 AM
#6
niccol avatar

niccol

Totally Zenned

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

Re: How do I put boxes around my category images?

Well, the boxes are cells in a table so you need to adjust how many cells you have in each row.

admin >> configuration >> maximum values >> Categories To List Per Row

Nick
iszent.com

16 Nov 2009, 6:00 PM
#7
michellepchy avatar

michellepchy

New Zenner

Join Date:
Jan 2009
Posts:
29
Plugin Contributions:
0

Re: How do I put boxes around my category images?

Thanks for this it was just what I wanted too. But I would also like the box around my sub categories is this possible.

Thank you