Jump to content

Tables not lining up


lee2010

Recommended Posts

Hi all, im having problems with my tables not lining up on my website.

 

Heres a screenshot of a table on my website:

 

jg5hrt.jpg

 

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

Link to comment
https://forums.phpfreaks.com/topic/229672-tables-not-lining-up/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.