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

T

Tony Johansson

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
 
B

Brian Cryer

Tony Johansson said:
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?
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top