<?
include('connection.php');
include('variables.php');
$sql = "SELECT DISTINCT manufacturer FROM tbl_manufacturer WHERE status=1 AND id NOT BETWEEN 57 and 63 ORDER BY RAND() LIMIT 12";
$sql_result = mysql_query($sql);
$sql_count = mysql_num_rows($sql_result);
//may need to limit to fewer in smaller browser
//echo $sql_count;
?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<? while ($result = mysql_fetch_array($sql_result)) { $manid = str_replace(" ", "%20", $result[0]);
?><a href="<?=$root;?>/pages/category.php?man_id=<?=$manid;?>"><img src="<?=$root;?>/pages/images/<?=$manid;?>.jpg" alt="<?=$result[0];?>" title="<?=$result[0];?>" hspace="1" vspace="1" border="0"></a> <?
echo "\n ";
$yz++; if ($yz % 3 == 0) { echo "<br>"; }
}
?>
</td>
</tr>
</table>
This part page can be seen at this url - it is the logos only (Phillips etc).
http://www.billingtonelec.co.uk/index.php
The code from above
if ($yz % 3 == 0) { echo "<br>"; }
restricts the amount of logos that will go on one line. The trouble is I want these logos to stack up the full length of the line and wrap when they meet the html table end.
Removing
if ($yz % 3 == 0) { echo "<br>"; }
does this fine for all browsers other thank IE. In ie the logos wont wrap naturally when they meet the html table wall. Hence this fix which is actually no good.
Any ideas how ie can be forced to wrap the logos like in all other browsers?
thanks
Alex