lee2010 Posted March 5, 2011 Share Posted March 5, 2011 Hi all, im having problems with my tables not lining up on my website. Heres a screenshot of a table on my website: heres the tables code: <table width="50%" border="1" cellspacing="5" cellpadding="0"> <tr> <td width="90px"><?php echo $rows['username']; ?></td> <td width="90px"><?php echo $rows['payment_status']; ?></td> <td width="90px"><?php echo $rows['payment_amount']; ?></td> <td width="90px"><?php echo $rows['payment_currency']; ?></td> <td width="90px"><?php echo $rows['transaction_id']; ?></td> <td width="90px"><?php echo $rows['payer_email']; ?></td> </tr> </table> and heres my CSS: * { padding: 0; margin: 0; } body { font-family: Arial, Helvetica, sans-serif; font-size: 13px; } #wrapper { margin: 0 auto; width: 922px; } #faux { background: url(faux-3-2-col.gif); margin-bottom: 0px; overflow: auto; width: 100%; } #header { text-align:center; height: 210px; margin: 5px; background-image:url('../images/header.jpg'); background-repeat:no-repeat; background-position: center center; } #navigation { width: 100%; font-weight: bold; text-align:center; background: #FFA824; padding-top: 10px; padding-bottom: 10px; background: #f5b847; } #content { color: #333; padding: 0px; width: 900px; height: 100%; font-size: 14px; margin:10px; clear: both; } #footer { text-align:center; width: 100%; clear: both; background: #FFA824; padding-top: 10px; padding-bottom: 10px; font-weight: bold; } a:link { COLOR: #000000; } a:visited { COLOR: #000000; } a:hover { COLOR: #000000; } a:active { COLOR: #000000; } .clear { clear: both; background: none; } I really don't understand why it isnt lining up. I want all of my columns to line up neatly down the page. Is there anything i need to add to my CSS to fix this problem? Thanks Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted March 5, 2011 Share Posted March 5, 2011 Separate tables rarely line up at all. Open the <table>, then echo all the table rows, then close the </table> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.