Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Vertical Align Icons in Grid Format

Vertical Align Icons in Grid Format

Locked

Views: 1,908

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Jul 2008, 1:48 PM
#1
qwert302 avatar

qwert302

Zen Follower

Join Date:
Mar 2008
Posts:
148
Plugin Contributions:
0

Vertical Align Icons in Grid Format

If you look at my racquetball site below you will notice that the categories are laid out in a grid format on the main page. They are all vertically top aligned, and I want them vertically middle aligned. The same thing for the featured items on the bottom.

I have played with the stylesheet but I can't seem to find the proper place to adjust the value for these items.

Anyone know? Thanks.

1 Jul 2008, 2:16 PM
#2
kobra avatar

kobra

Black Belt

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

Re: Vertical Align Icons in Grid Format

A solution for this is to matt all of your images to the same dimensions

1 Jul 2008, 7:15 PM
#3
qwert302 avatar

qwert302

Zen Follower

Join Date:
Mar 2008
Posts:
148
Plugin Contributions:
0

Re: Vertical Align Icons in Grid Format

That's not a solution, that's a workaround.

There has to be a way to do it with the stylesheet, right?

If I was producing all images I would make them all the same size, but I am getting these images from the manufacturers, and therefore I am stuck with what sizes they give me.

Now for all the categories I could easily just adjust the sizes to what I want, since the images are only used for the categories. But the featured items are using the same image as the product info, and I don't really feel like uploading a separate small image for every featured item I make.

Thanks for the bump though.

1 Jul 2008, 10:07 PM
#4
kobra avatar

kobra

Black Belt

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

Re: Vertical Align Icons in Grid Format

But the featured items are using the same image as the product info, and I don't really feel like uploading a separate small image for every featured item I make.
Not a separate image - -will still be the same one just that it is good practice to have all images the same size and in your case this needs a standard matt that your images are placed on.

With Photo Shop this can be scripted as an action and done in bulk

2 Jul 2008, 11:40 AM
#5
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Vertical Align Icons in Grid Format

Hi Qwert,

You said "...There has to be a way to do it with the stylesheet, right?" Alas, all us web savants suffer this shock at some point. You might want to read up a little on "vertical aligning images using CSS" (do a Google search on that term.) Here's a couple of links for your reading pleasure...

http://www.student.oulu.fi/~laurirai/www/css/middle/
http://www.w3schools.com/Css/pr_pos_vertical-align.asp

HTH

Rob