Forums / Templates, Stylesheets, Page Layout / Centering images in category view

Centering images in category view

Started by andeem on 31 Aug 2011, 6:05 PM · Views: 432

Results 1 to 2 of 2
31 Aug 2011, 6:05 PM
#1
andeem avatar

andeem

New Zenner

Join Date:
Aug 2011
Location:
Little Ferry, NJ
Posts:
5
Plugin Contributions:
0

Centering images in category view

Hi!

I'm looking to center the images in the category view.

Such as, I click on a category listing(E.G. Mens Wear) and it shows a list of images of the sub categories that seem to be aligned left, which if theres a odd number of sub categories it leaves a ton of white space on the right hand side.

Example of what I mean- www dot outdoorgear dot net/mens-clothing-c-67.html

My question: Is there any way to have the sub category images centered so when there is an odd number of sub-categories it will distribute the space evenly on both sides.

What I tried:

In css, changing the .categoryListBoxContents div rule to margin-left auto, margin-right auto, does nothing.
I found it working slightly when I do a padding or margin-left: 50px; and a padding or margin-right: 50px; but it still seems to mess it up quite a bit.

6 Sep 2011, 4:08 PM
#2
andeem avatar

andeem

New Zenner

Join Date:
Aug 2011
Location:
Little Ferry, NJ
Posts:
5
Plugin Contributions:
0

Re: Centering images in category view

Can anyone help? Still running into the same issue :(