开发者

How to align my submit and cancel buttons(in tr) to the bottom of the table

开发者 https://www.devze.com 2023-01-10 19:20 出处:网络
How to align my submit and cancel buttons(in tr) to the bottom of the table? Please help me out! Thanks guys!

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消