Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7617325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T03:07:20+00:00 2026-05-31T03:07:20+00:00

How do I correct the following E-mail textbox alignment: ? To make it look

  • 0

How do I correct the following E-mail textbox alignment: ?

To make it look like this:

I know I can use tables, but how do I solve this problem without using tables? CSS maybe?

HTML:

<form action="" name="contactform" method="post">
<p></p>
First name: <input type="text" class="contact" name="contactfirstname" value="">
<br/>
Last name: <input type="text" class="contact" name="contactlastname" value="">
<br/>
E-mail: <input type="text" class="contact" name="email" value="">
<p></p>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T03:07:21+00:00Added an answer on May 31, 2026 at 3:07 am

    The most minimalized version I could think of…

    <form>
        <label>First Name: <input type="text" name="firstName"></label>
        <label>Last Name: <input type="text" name="lastName"></label>
        <label>Email Address: <input type="email" name="emailAddress"></label>
    </form>​
    

    and

    form {
        width: 300px;
    }
    label {
        display: block;
        margin: 5px;
        padding: 5px;
        clear: both;
    }
    label input {
        float: right;
    }​
    

    Since OP has edited his question to include his markup, I’ll expand the answer.

    Some Points of Improvement:

    • Remove the empty <p> element, and the <br/> elements. They have no value inside a form.
    • Use <label>s, that’s what they were made for. You can wrap the label and the input inside of the <label> tag, or you can use <label for="element_id">Label</label><input id="element_id">.
    • Be consistent. If you decided to go with the <br /> type of format for singular tags, stick with it to the <input />s as well.
    • Use correct input types for specific inputs, there is type="email" for the email field, which will optionally have the browser check for you if it’s a valid email address or not!.
    • Use CSS for design and layout, not <p>s and <br>s.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I correct the following so that I don't receive a syntax error
The following C++ code i think is correct, but produce some warnings when compiled
The following code produces wrong and inconsistent output with gcc (4.1.2 20080704) but correct
The following script will update the database, but it won't display the correct page
Can anyone tell how correct the following code below. Iam tryin to create a
I am trying to make sure I am following correct memory management in my
I'm sure I'm not following correct game coding conventions here, but I'm very much
I would like to ask if I's correct the following : MyClass *obj =
How do I correct the following error that is listed below. I'm using PHP
I have the following code (correct for my simple tests) for a linked list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.