PUTTING CONTROLS ON A LINE

Jeet Verma

Total Post:110

Points:776
Posted by  Jeet Verma
 847  View(s)
Ratings:
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>

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: Putting controls on a line

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!