Shadowing Posted February 14, 2012 Share Posted February 14, 2012 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> Link to comment Share on other sites More sharing options...
Ingolme Posted February 14, 2012 Share Posted February 14, 2012 Do you have any CSS on your page that could be affecting the table? Link to comment Share on other sites More sharing options...
phpnoob Posted February 14, 2012 Share Posted February 14, 2012 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> 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 More sharing options...
dsonesuk Posted February 15, 2012 Share Posted February 15, 2012 <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 More sharing options...
Shadowing Posted February 15, 2012 Author Share Posted February 15, 2012 Thanks dsonesuk that fixed it. I didnt even notice my ending tags were wrong lol. that problem was driving me crazy. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.