Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ASP.net technique positioning labels above text boxes

Posted on 2011-03-22
3
Medium Priority
?
425 Views
Last Modified: 2012-05-11
Hi
Does anyone know of a technique for positioning labels neatly above text boxes on an ASP.net webform
0
Comment
Question by:Murray Brown
3 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 35190034
...
<label>First Name</label>
<br />
<input ID="txtFName" maxlength="50" runat="server" size="25" type="text" />
...
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 total points
ID: 35190368
DIVs would be a better semantic approach:
<div class="label">
     <label>First Name</label>
</div>
<div class="input-field">
   <input type="text" />
</div>

Open in new window

0
 

Author Closing Comment

by:Murray Brown
ID: 35194042
thanks very much
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question