c# - How can I put another text box in the same row as my other text box? -
i managed make zip textbox aligned delivery text box. code.
<div class="form-group" style="float:left"> <asp:textbox id="txtaddress" runat="server" width="227px" height="81px" name="form-first-name" placeholder="delivery address..." class="form-first-name form-control" text-mode="multiline"></asp:textbox> <asp:requiredfieldvalidator id="requiredfieldvalidator7" runat="server" errormessage="delivery address required." display="dynamic" controltovalidate="txtaddress" forecolor="red"></asp:requiredfieldvalidator> <asp:regularexpressionvalidator id="regularexpressionvalidator10" runat="server" errormessage="enter valid address" display="dynamic" controltovalidate="txtaddress" forecolor="red" validationexpression="^[a-za-z# .0-9]+$"></asp:regularexpressionvalidator> </div> but has no space between 2 textboxes? how can trick?
you can add "float: left" property 2 textboxes. makes align on same line , use css doing styling.
example code shown below. add id 2 divs , give unique id.
html abc<br /> <div id="textbox1"></div> <div id="textbox2"></div> css #textbox1, #textbox2 { display: block; float: left; width: 100px; height: 100px; } #textbox1 { background-color: red; } #textbox2 { background-color: blue; } see jsfiddle
Comments
Post a Comment