by bubblefast » Sat Apr 28, 2007 6:45 pm
I'm trying to be as basic as possible so I can learn. I have 100 products of a similar nature that I want to put in a table. I do not want spaces between any of the rows. I need to compress my space.
I created a very basic page template:
[-- DEFINE PAGE --]
<html>
# This define is used to control how the page will look
[-- LOOP PRODUCTS --]
[-- PRODUCT --]
[-- END_LOOP PRODUCTS --]
</html>
[-- END_DEFINE PAGE --]
and a very basic product template:
<FORM action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
<table>
<tr>
<td>[--product.graphic --]</td>
<td>[--product.name--]</td>
<td>[--product.sku--]</td>
<td>[--product.productdescription --]</td>
<td>[--product.price--]</td>
<td><input type=text size=2 name="[-- PRODUCT.RECORDNUMBER --]:qnty" value="1"></td>
<td><input type=hidden name=storeid value=[--STORE_ID--]>
<input type=hidden name=dbname value=products>
<input type=hidden name=function value=add>
<input type=hidden name=itemnum value=[-- product.RecordNumber --]>
<input type=image src="[--OUTPUT_DIRECTORY_URL--]/media/themesmedia/tab_blue_button_view.gif">
<a href="[-- Shopping_Cart_URL --]">[-- PRODUCT.AddCartButton --]</a></td>
</tr>
</table>
</FORM>
This works, but there still is a space between rows. Do you have any suggestions?