Solved

How can the label be on the same alignment?

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

831 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