align controls left to right on a modal pop up in asp.net -
i cant text boxes align left right in modal pop up. here code in . should change.
<asp:updatepanel runat="server" id="modalpanel1" updatemode="conditional"> <contenttemplate> <!-- shadow container --> <div class="shadowcontainer"> <h1><asp:label runat="server" id="xyz" text="make" /></h1> <tr style="width:1000px;"> <td colspan = "2" style="width:100px;"> <div>name1</div> <asp:textbox runat="server" id="name1" maxlength="40"/> <span id="span1" style="color:red;"> <asp:customvalidator id="val1" runat="server" onservervalidate="val1_servervalidate" controltovalidate="name1" validateemptytext="true" validationgroup="thisgroup"></asp:customvalidator> </span> <div>name2</div> <asp:textbox runat="server" id="textbox1" maxlength="40"/><br /> <span id="span2" style="color:red;"> <asp:customvalidator id="customvalidator1" runat="server" onservervalidate="customvalidator1_servervalidate" controltovalidate="textbox1" validateemptytext="true" validationgroup="thisgroup"></asp:customvalidator> </span> </td> </tr> </div> </contenttemplate> </asp:updatepanel>
i modified code earlier post. if there save button on modal pop up, how ensure hitting save not change formatting of alignment?
you have need. problem can see not have width set td; therefore, may not created wide enough default. make sure set width large enough contain of content.
<td colspan="2" style="width:500px;">
edit:
i believe problem width set on td. have updated code, can see have td have set width of 100px
. cause controls break on separate lines.
Comments
Post a Comment