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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.