Jump to content

Problem with a table


Shadowing
 Share

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;}

Edited by phpnoob
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...