Kod:
echo '<ul id="lista">';
$result = mysql_query($sql) or die(mysql_error());
while ($row = mysql_fetch_assoc($result)) {
echo '<li><span>' . $row['submission_id'] . '</span></li>';
}
echo '</ul>';
Med följande CSS:
Kod:
#lista
{width: 600px; border: 1px solid #eee; border-top: 0; border-left: 0; margin: 0; padding: 0;}
#lista li:last-child:after
{content: ""; clear: both;}
#lista li
{display: inline; margin: 0; padding: 0;}
#lista li span
{display: block; float: left; width: 179px; padding: 10px; text-align: center; border: 1px solid #eee; border-right: 0; border-bottom: 0;}
Om jag har förstått dig rätt