Solved

How can the label be on the same alignment?

Posted on 2009-05-17
1
380 Views
Last Modified: 2012-05-07
Hi Experts,

How can the label be displayed beside the text box? Currently the label is displayed under the textbox.

Thanks
<td width="88%" colspan="3">
<input type="text" id="txtname" name="txtname" size="45"><label class="lblreqd" id="lblname">*required</label>
</td>

Open in new window

0
Comment
Question by:kosenrufu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24408214
Not sure if I understand what you mean. I created a small page that includes your snippet and it aligns perfectly well on the same line as the base line: http://www.undermyskin.org/external-examples/ee-questions/Q_24416250/

this is the main part:

<table border="1">
    <tr>
        <td width="12%">col1</td>
        <td width="30%" >col2</td>
        <td width="30%" >col3</td>
        <td width="28%" >col4</td>
    </tr>
    <tr>
        <td width="12%">col1</td>
        <td width="88%" colspan="3">
            <input type="text" id="txtname" name="txtname" size="45"><label class="lblreqd" id="lblname">*required</label>
        </td>
    </tr>
</table>

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Disable selected option from one select box when selected in another select box 26 66
Non-Resizable Pharagraph 2 18
Validating Date 4 28
Link not working 6 42
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

749 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