?
Solved

How can the label be on the same alignment?

Posted on 2009-05-17
1
Medium Priority
?
385 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 2000 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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

777 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