Hi, thanks for the response and sorry to not respond sooner. (I was dealing with a family health emergency over the weekend.)
What I'm trying to do is set up rows of products, 4 across (4 columns). Depending on the product picture and text, the height of each will be variable. The tricky part comes in that I would like all the "add to cart" buttons for each product aligned along the BOTTOM of the row. I ended up wanting to use code like this:
- Code: Select all
<table border="1" width="100%" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" style="height:400px; border:1px solid green; position:relative;">
<tr>
<td style="vertical-align:bottom;">
<div style="position:absolute; top:0px; border:1px solid red;">
top?
</div>
bottom?
</td>
<td style="vertical-align:bottom;">
<div style="position:absolute; top:0px; border:1px solid red;">
top?
</div>
bottom?
</td>
</tr>
</table>
<table border="1" width="100%" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF" style="height:400px; border:1px solid green; position:relative;">
<tr>
<td style="vertical-align:bottom;">
<div style="position:absolute; top:0px; border:1px solid red;">
top?
</div>
bottom?
</td>
<td style="vertical-align:bottom;">
<div style="position:absolute; top:0px; border:1px solid red;">
top?
</div>
bottom?
</td>
</tr>
</table>
Since the DIVs are absolutely positioned it ends up that is relative to the outer table which means multiple rows must be in separate tables. At least, that's the best I could come up with that worked cross-browser.
My solution ended up being to not use the column specifier in LOOP PRODUCTS at all. I ended up with a table-less solution using only floating DIVs... something like this:
- Code: Select all
<div style="left: 228px; position: absolute; top: 220px; width: 600px; z-index: 1; ">
[-- LOOP PRODUCTS --]
<div style="position:relative; float:left; width:150px; height:450px;">
[-- PRODUCT product_template.html --]
</div>
[-- END_LOOP PRODUCTS --]
<div style="clear:both"></div>
<div>
Inside the product_template I have a div similar to my first example to put the Add To Cart button at the bottom:
- Code: Select all
<div style="position:absolute; bottom:0px;">
Add to cart code
</div>
The only drawback to this approach is that I had to use a fixed height for the DIVs of 450px.
So... I pretty much got the effect that I wanted... but my original question still stands. :) It would be useful is there was a way to control the </tr><tr> that ShopSite inserts after each product row.
Thanks.