Solved

How can the label be on the same alignment?

Posted on 2009-05-17
1
377 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now