ethandanielroberts
Programmer
Hi all. I'm trying to right align buttons generated by ASP. I've tried (seemingly) everything from cellpadding/spacing, creating different cells, putting the buttons on the same line, aligning them different ways, forcing the size, but no matter what there is alway large spaces between the three buttons and they will not align right. Any ideas? Here's the code:
<table class="cBackGroundTable">
<tr>
<td valign="center" align="middle">
<table class="cStandardTable" cellpadding="0" cellspacing="10" border=0>
<tr>
<td align="right" width="25%">Username:</td>
<td><input NAME="loginname" style="width:100%">
</td>
</tr>
<tr>
<td align="right">Password:</td>
<td><input type="password" NAME="password" style="width:100%">
</td>
</tr>
<tr align=right>
<td valign="center" colspan=2>
<%=ButtonSetup("Ok", "frmLogin.submit()", false)%>
<%=ButtonSetup("Cancel", "location.replace('./login.asp')", false)%>
<%=ButtonSetup("Info", "location.replace('./info.htm')", false)%>
</td>
</tr>
</table>
</td>
</tr>
</table> ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬
Syclick Ltd.
+44 (0)780 308 5845
ethan@syclick.com
<table class="cBackGroundTable">
<tr>
<td valign="center" align="middle">
<table class="cStandardTable" cellpadding="0" cellspacing="10" border=0>
<tr>
<td align="right" width="25%">Username:</td>
<td><input NAME="loginname" style="width:100%">
</td>
</tr>
<tr>
<td align="right">Password:</td>
<td><input type="password" NAME="password" style="width:100%">
</td>
</tr>
<tr align=right>
<td valign="center" colspan=2>
<%=ButtonSetup("Ok", "frmLogin.submit()", false)%>
<%=ButtonSetup("Cancel", "location.replace('./login.asp')", false)%>
<%=ButtonSetup("Info", "location.replace('./info.htm')", false)%>
</td>
</tr>
</table>
</td>
</tr>
</table> ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬
Syclick Ltd.
+44 (0)780 308 5845
ethan@syclick.com