![]() |
Aligning products
I want to edit the alignment of the product thumbnails when they are three across. Which part of this code do I need to edit? I want them to line up either at the top of the thumbnail images or at the bottom where the price is.
Thanks in advance! Code:
{* $Id: products_t.tpl,v 1.30.2.4 2006/11/27 11:40:25 max Exp $ *} |
Re: Aligning products
Could also be this template:
Code:
{* $Id: products.tpl,v 1.72.2.3 2006/11/27 11:40:25 max Exp $ *} |
Re: Aligning products
Wow that is a lot of tables! Is that an add-on skin or have you done some customizing? The first thing you need to do is get rid of half of those nested tables. products_t.tpl is the one you want...and you want to set the table cell that contains the image to this:
<td style="vertical-align: top;"> |
Re: Aligning products
Thanks, Balinor. That's an add-on. What do you mean by get rid of nested tables? (And what are nested tables?)
Thank you! |
Re: Aligning products
You have tables inside of tables inside of tables. Makes for really bloated code and makes it more difficult to control the display. You could probably get rid of most of them in that particular instance.
|
Re: Aligning products
Looks great in IE, but Mozilla / Firefox ignore it. Sure would be nice if these different browsers could settle on some standards.
Thanks again! |
Re: Aligning products
How do you know which tables are extraneous?
|
Re: Aligning products
Well that's the thing...Firefox, Opera and Safari DO follow the standards...IE does not :(
|
Re: Aligning products
Yeah - you're right about that. Is there a code that is equivalent to what you gave me that would work in Firefox? If so, can they be used together? Or do I have to make a choice between which browser is going to get the right appearance? Although, it's unfortunately not much of an option which choice is made. Most people still use IE.
Personally, I've only ever used it to check stuff like this. For personal use, I've always been a Mozilla fan. Thanks again :) |
Re: Aligning products
All of those tables can be removed except the one that is used to create the three columns that display your products. That way, you have one cell containing one thumbnail. I bet the code I gave you will work once you get rid of those tables, as IE tends to add unnecessary padding to each table.
|
All times are GMT -8. The time now is 10:34 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.