c# - Html: 2 td's, how to align them center? -
The code to submit and cancel buttons below. When I had 3 buttons, I used to combine in the middle as one in the middle. So all 3 buttons looked good. But for something like that, with two buttons I can to align them in tr This shows little left with the code thanks!
& lt; Tr align = "center" & gt; & Lt; Td style = "width: 100px; height: 45px;" & Gt; & Lt; asp: ImageButton ID = "imgbtnSubmit" runat = "server" imageUrl = "~ / images / submitnew.gif" OnClick = "imgbtnSubmit_Click" Validation group = "valcc" TabIndex = "21" / & gt; & Lt; / TD & gt; & Lt; Td style = "width: 100px; height: 45px;" & Gt; & Lt; Asp: ImageButton ID = "imgbtnCancel2" runat = "server" imageUrl = "~ / images / cancel.gif" onclick = "imgbtnCancel2_Click" CausesValidation = "false" ImageAlign = "absmiddle" ValidationGroup = "valCC" / & gt; & Lt; / TD & gt;
put in a cell with ( colspan = 2
) And center them there:
& lt; Tr & gt; & Lt; td style = "width: 200px; height: 45px; text-align: center;" Callspan = 2 & gt; & Lt; ASP: ImageButton id = "imgbtnSubmit" runat = "server" imageUrl = "~ / images / submitnew.gif" onclick = "imgbtnSubmit_Click" ValidationGroup = "valcc" tabindex = "21" /> & Lt; ASP: ImageButton id = "imgbtnCancel2" runat = "server" imageUrl = "~ / images / cancel.gif" onclick = "imgbtnCancel2_Click" CausesValidation = "false" ImageAlign = "absmiddle" ValidationGroup = "valcc" /> & Lt; / TD & gt; & Lt; / TR & gt;
Comments
Post a Comment