I have a table on my webpage, and it automatically aligns to the left, the text is aligned in the center which is what I want, but I am unable to get the table to align to the center of the page.
<table style="border: 1px solid black; width:300px">
<tr>
<td colspan="2">
<b> Change Your Passwordsword</b>
</td>
</tr>
<tr>
<td>
New Password:
</td>
<td>
<input type="password" id="pwd1" name="pwd1" size = "8" />
</td>
<tr>
<td>
Confirm Password:
</td>
<td>
<input type="password" id="pwd2" size = "8" name="pwd2" />
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="submit" value="Confirm" /></td>
</tr>
<tr>
<td>
<asp:Literal ID="msg" runat="server" />
</td>
</tr>
</table>
Here is the code for my table.