Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How do I align a label so it is positioned right in front of a dropdownlist in asp

Reply
Thread Tools

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

 
 
Tony Johansson
Guest
Posts: n/a
 
      06-13-2011
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;
<aspropDownList ID="DropDownList1" runat="server">
</aspropDownList>
....

//Tony



 
Reply With Quote
 
 
 
 
Brian Cryer
Guest
Posts: n/a
 
      06-14-2011
"Tony Johansson" <(E-Mail Removed)> wrote in message
news:it5tl9$lup$(E-Mail Removed)...
> 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;
> <aspropDownList ID="DropDownList1" runat="server">
> </aspropDownList>


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
vertically align absolutely positioned div elements Guybrush Threepwood HTML 1 12-14-2005 09:29 PM
Right Align Textbox/label Wardeaux ASP .Net 3 11-12-2004 08:46 PM
Align Label Text Right Lee Trotter ASP .Net Web Controls 2 06-12-2004 01:50 AM
How to keep Label text right align? kai ASP .Net 3 02-23-2004 03:43 AM



Advertisments