How to align my submit and cancel buttons(in tr) to the bottom of the table
How to align my submit and cancel buttons(in tr) to the bottom of the table?
Please help me out! Thanks guys!
. . . .
<tr align ="center" valign="bottom">
<td align="center" valign="bottom">
<asp:ImageButton ID="btnDisable" runat="server" ImageUrl="~/images/green-deactivate.gif" OnClick="btnDisable_Click"
ValidationGroup="group1" />
<asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/images/cancel.gif" OnClick="btnCanc开发者_JS百科el_Click" />
</td>
</tr>
</table>
In the td element add
style="vertical-align: bottom;"
That should do the trick.
<tr valign="bottom">
see w3schools
What way are they aligning for you? perhaps you should have the different buttons each within there own cell?
<tr>
<td> ok </td>
<td> cancel </td>
</tr>
精彩评论