centre a php table:

Soldato
Joined
26 Nov 2005
Posts
3,839
Location
Doon the Bay (Newcastle)
how do i centre this table?



echo "<table border='1'>
<tr>
<th>Date</th>
<th>Event</th>
<th>Type</th>
<th>Information</th>
</tr>";




while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['date'] . "</td>";
echo "<td>" . $row['i1'] . "</td>";
echo "<td>" . $row['i2'] . "</td>";
echo "<td>" . $row['i3'] . "</td>";
echo "</tr>";
}
echo "</table>";








Data is pulling through fine from the SQL (yey spent all day getting that right) but the table it displaying to the left while my whole website is centered.


Thanks!!!! :D
 
Back
Top Bottom