I've been struggling to center the text inside this table despite trying various solutions. Any help would be greatly appreciated.
Here's the HTML code I have:
<div id="paccount">
<table style="margin: 0 auto;">
<tr>
<td width="320" height="150">Order History</td>
<td width="28" rowspan="4"></td>
<td width="320" rowspan="4">Personal Information</td>
</tr>
<tr>
<td height="15"></td>
</tr>
<tr>
<td width="320" height="90">Preferences</td>
</tr>
<tr>
<td height="15"></td>
</tr>
<tr>
<td height="115" colspan="3">Logout</td>
</tr>
</table>
</div>
And here is the CSS for the div:
#paccount {
width: 668px;
height: 400px;
background-color: transparent;
text-align:center;
}
EDIT: Apologies, my previous statement was unclear. What I meant was centering the text within the table itself.