Home > DeveloperSection > Forums > Putting controls on a line
Jeet Verma
Jeet Verma

Total Post:110

Points:776
Posted on    November-17-2014 11:37 PM

 ASP.Net ASP.Net 
Ratings:


 1 Reply(s)
 573  View(s)
Rate this:

i have two lable and two textbox and i want put those control on a line without position absolute

 

        <div id="divtxtuser" >

            <asp:TextBox CssClass="txt" ID="txtUser" runat="server"></asp:TextBox>

        </div>

        <div id="divlblpass" >

            <asp:Label CssClass="lbl" ID="lblPass" runat="server"></asp:Label>

        </div>

        <div id="divtxtpass">

            <asp:TextBox runat="server" CssClass="txt" ID="txtPass"></asp:TextBox>

        </div>



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    November-17-2014 11:46 PM

Hi Jeet, 

Don't put them in separate divs.

 

<div>

   <asp:TextBox CssClass="txt" ID="txtUser" runat="server"></asp:TextBox>

   <asp:Label CssClass="lbl" ID="lblPass" runat="server"></asp:Label>

   <asp:TextBox runat="server" CssClass="txt" ID="txtPass"></asp:TextBox>

</div>


Don't want to miss updates? Please click the below button!

Follow MindStick