Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I am having some trouble getting my array to align to the left. This is a shopping cart that when a new product is called it should align next to the previous product. What is happening is that the second product becomes centered leaving a large space inbetween the first and second product. Here is the code that I have been working on.
thanks,
PhilCode: Select all
<!-- Image TABLE -->
<?php $x = 0; while($list = mysql_fetch_array($resultїresult])){ ?>
<!-- INSERT IMAGE -->
<?php $array = $listїpPhoto] ? $db->scalePhoto($listїpPhotoWidth], $listїpPhotoHeight]) : array("width" => "75", "height" => "75"); ?>
<td width="138" height="19" valign="top" class="borderSide">
table width="120" border="0" align="left" cellpadding="5" cellspacing="0">
<tr>
<td valign="middle" align="center" width=85>
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $listїpID]; ?>"><img src="<?php print $db->productIMGurl; ?>/<?php $listїpPhoto] ? print $listїpPhoto] : print "na.gif"; ?>" width=<?php print $arrayїwidth]; ?> height=<?php print $arrayїheight]; ?> border=0></a></td>
</tr>
<!-- END INSERT IMAGE -->
<!-- Item Description -->
<tr>
<td height="25" align="left" valign="middle"><span class="arial11bold">
<b><a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $listїpID]; ?>" class="link"><?php print stripslashes($listїpName]); ?></a></b></span>
<!-- END Item Description -->
<!-- ITEM PRICE/ Price-Sale -->
<span class="arial11Grey">
<?php $listїpSalesPrice]>'0' && $listїpSale]=="Y" ? print " <br><b>Price:</b> <strike>\$$listїpPrice]</strike><br><b>Sale:</b> \$$listїpSalesPrice]</font> " : print "<b>Now:</b> \$$listїpPrice]"; ?> </span></td>
</tr>
<!-- END ITEM PRICE/ Price-Sale -->
<!-- Buy Button/Link -->
<tr>
<td height="22" align="left" valign="middle">
<a href="<?php print $PHP_SELF; ?>?m=product_detail&p=<?php print $listїpID]; ?>"><img src="imgs/buy.gif" width="25" height="15" border="0"></a>
</td></tr>
</table></td>
<!-- END Buy Button/Link -->
<td valign="top" class="borderSide">
<!-- Product Loop -->
<div align="left">
<?php $x++; } ?>
</div>
<!-- End Product Loop -->Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]