桌子从上到下显示,我需要从左到右


tables displaying up to down,i need left to right

 <?php 
      include("config.php");
      $sql="SELECT * from product_tbl where prod_status=1 order by prod_id desc LIMIT 6";
      $result=mysql_query($sql);
      while ($row=mysql_fetch_assoc($result)) {
        echo "<table class='products' border=1 width=180>";
        echo "<tr><td>";
        echo "<center>";
        echo $row['prod_name'];
        echo "</center>";
        echo "</td></tr>";
        echo "<tr><td>";
        echo "<img src='".$row['prod_img']."' height=200 width=178/>";
        echo "</td></tr>";
        echo "<tr><td>";
        echo "<center>";
        echo "Rs.".$row['prod_price'];
        echo "</center>";
        echo "</td></tr>";
        echo "</table>";
      }

您尝试使用float:lefttd样式,或者您需要左一行,然后尝试tr样式float :left