How do I align a label so it is positioned right in front of a dropdownlist in asp

Discussion in 'ASP .Net' started by Tony Johansson, Jun 13, 2011.

  1. Hello!

    Here is some code and I wonder how do I positioned the Label centered in
    front of the dropdownlist ?

    body>
    <form id="form1" runat="server">
    <div>

    <!--Page Header -->
    <h3 style="text-align: center">This Page is where you Add/Delete/Update
    the Digital camera product </h3> <br />

    <asp:Label ID="Label3" runat="server" Text="Maker:" /> &nbsp;
    <asp:DropDownList ID="DropDownList1" runat="server">
    </asp:DropDownList>
    ....

    //Tony
    Tony Johansson, Jun 13, 2011
    #1
    1. Advertising

  2. Tony Johansson

    Brian Cryer Guest

    "Tony Johansson" <> wrote in message
    news:it5tl9$lup$...
    > Hello!
    >
    > Here is some code and I wonder how do I positioned the Label centered in
    > front of the dropdownlist ?
    >
    > body>
    > <form id="form1" runat="server">
    > <div>
    >
    > <!--Page Header -->
    > <h3 style="text-align: center">This Page is where you Add/Delete/Update
    > the Digital camera product </h3> <br />
    >
    > <asp:Label ID="Label3" runat="server" Text="Maker:" /> &nbsp;
    > <asp:DropDownList ID="DropDownList1" runat="server">
    > </asp:DropDownList>


    What you've posted should put the label immediatly to the left of the drop
    down list.

    What exactly do you mean when you say you want it the label positioned
    "centred infront" of the drop down?
    --
    Brian Cryer
    http://www.cryer.co.uk/brian
    Brian Cryer, Jun 14, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. kai
    Replies:
    3
    Views:
    25,152
  2. Wardeaux

    Right Align Textbox/label

    Wardeaux, Nov 12, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    25,085
    =?Utf-8?B?dmluYXk=?=
    Nov 12, 2004
  3. Guybrush Threepwood
    Replies:
    1
    Views:
    456
    Mitja Trampus
    Dec 14, 2005
  4. Lee Trotter

    Align Label Text Right

    Lee Trotter, Jun 11, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    261
    DalePres
    Jun 12, 2004
  5. Knut Krueger
    Replies:
    8
    Views:
    236
    Knut Krueger
    Aug 20, 2013
Loading...

Share This Page