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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 387
  • Last Modified:

How can the label be on the same alignment?

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
kosenrufu
Asked:
kosenrufu
1 Solution
 
abelCommented:
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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now