Solved

How can the label be on the same alignment?

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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