title: Create a dynamic table-like grid without using tables
body: <p>I am wondering if it's possible to create a grid-like layout using div's that are dynamically created using PHP. </p>
  
  <p>I am creating a product page that will display all products in a PHP database. I want each product to be housed in a div, and 3 divs to display in a row with as many rows as needed to get through all the products.</p>
  
  <p>Something like this: </p>
  
  <pre><code>div              div              div
  $row['product1'] $row['product2'] $row['product3']
  
  div              div              div
  $row['product4'] $row['product5'] $row['product6']
  </code></pre>
  
  <p>I would prefer not to use a table. I know how to line divs up using the float and clear properties, but not if they are all being created in a while statement, which makes me think it might not be possible. </p>
  
  <p>So I guess, is this possible without using tables, or should I just stick with that? </p>