I have a simple form that displays a sub Catagory from my database and in (brackets) a count of how many items within the sub catagory. The list is displayed but shows the items as a vertical list. What I need to do is display the list with 4 items per row. Does anyone know a simple code to put into the display?
Below is the code
<form name="form1" method="post" action="shop_results.php">
<div align="justify">
<?php do { ?>
<div align="left"><span class="style2">
<input name="sub_cat[]" type="checkbox" id="sub_cat[]" value="<?php echo $row_search['sub_cat'] ?>"<?php if (!(strcmp($row_search['sub_cat'],"yes"))){echo "checked";}?>>
<?php echo $row_search['sub_cat']; ?> (<?php echo $row_search['count']; ?>) </span>
</div>
<?php } while ($row_search = mysql_fetch_assoc($search)); ?>
<br>
<br>
<input type="submit" name="Submit" value="Submit">
</div>
</form> [code=php]