Solved

How can the label be on the same alignment?

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

Suggested Solutions

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

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