Jump to content

Problem with a table


Shadowing

Recommended Posts

Anyone know what is causing this problem im having with my tablethe td's are not center with in the table border. the space on the right of the table

<table   border="1" align="center"> <tr><th height="30">Goauld Statistics</th></tr>   <tr align="center"><td><h2><?php echo $grab_goauld; ?></h2></td><tr><tr><td>Dominion Level: <?php echo number_format($dominion_level); ?><td></tr><tr><td >Login Amount: <?php echo number_format($login_count); ?></td></tr></table>

table-1.jpg

Link to comment
Share on other sites

Anyone know what is causing this problem im having with my tablethe td's are not center with in the table border. the space on the right of the table
<table   border="1" align="center"> <tr><th height="30">Goauld Statistics</th></tr>  <tr align="center"><td><h2><?php echo $grab_goauld; ?></h2></td><tr><tr><td>Dominion Level: <?php echo number_format($dominion_level); ?><td></tr><tr><td >Login Amount: <?php echo number_format($login_count); ?> </td></tr></table>

table-1.jpg

you just need to add in css to this, but first add id or class to table
<table   border="1" align="center" class="something"><tr><th height="30">Goauld Statistics</th></tr>  <tr align="center"><td><h2><?php echo $grab_goauld; ?></h2></td><tr><tr><td>Dominion Level: <?php echo number_format($dominion_level); ?><td></tr><tr><td >Login Amount: <?php echo number_format($login_count); ?> </td></tr></table> Css.something tr td{text-align:center;}

Link to comment
Share on other sites

<table border="1" align="center"><tr><th height="30">Goauld Statistics</th></tr> <tr align="center"><td><h2><?php echo $grab_goauld; ?></h2></td><tr><tr><td>Dominion Level: <?php echo number_format($dominion_level); ?><td></tr><tr><td >Login Amount: <?php echo number_format($login_count); ?></td></tr></table>Correcting these two might help!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...