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 7942863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:06:06+00:00 2026-06-04T00:06:06+00:00

html code <div id="signup"> <p> <label>Frist Name</label> <input type="text"/> <p> <p> <label>Last Name</label> <input

  • 0

html code

<div id="signup">
    <p>
        <label>Frist Name</label>
        <input type="text"/>
    <p>
    <p>
        <label>Last Name</label>
        <input type="text"/>
    <p>
    <p>
        <label>Email</label>
        <input type="text"/>
    <p>
    <p>
        <label>Mobile Number</label>
        <input type="text"/>
    <p>
    <p>
        <label>Password</label>
        <input type="password"/>
    <p>
    <p>
        <label>Re Password</label>
        <input type="password"/>
    <p>
</div>

and this is css

css

#signup{
    width: 860px;
    background-color: white;
    border:  1px black solid;
    padding: 0px;
    margin: 0px;
}
#signup p label{
    padding: 0.4em;
    color: #0986e3;
}
#signup p input{
    width: 300px;
    padding: 0.4em;
}

if u run this code u will see the input files right and left , and that is not good , i can correct this problems using div or li , but i want the best practice for doing that , i want the input filds to be exaclty below each other
,this is the code in jsfiddle
http://jsfiddle.net/Wiliam_Kinaan/EfBD7/

  • 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-06-04T00:06:08+00:00Added an answer on June 4, 2026 at 12:06 am

    Here, I did it how I would do it. I stripped out the p and some css to make text right side. but you can of course add display:inline-block;width:300px; to the label and swap the label and input locations in html

    <!DOCTYPE html>
    <html>
    <head>
    <title></title>
    <style type="text/css">
    #signup{
        width: 500px;
        background-color: #ececec;
        border:  1px black solid;
        padding: 0px;
        margin: 0px;
    }
    #signup label{
        font:12px arial;
        color: #0986e3;
    }
    #signup input{
        margin:10px;
        width: 300px;
        padding 0.4em;
    }
    #signup input[type=button]{
        margin:10px;
        width: 80px;
        padding 0.4em;
    }
    </style>
    </head>
    <body>
    <div id="signup">
        <input type="text"/>
        <label>Frist Name</label>
        <input type="text"/>
        <label>Last Name</label>
        <input type="text"/>
        <label>Email</label>
        <input type="text"/>
        <label>Mobile Number</label>
        <input type="password"/>
        <label>Password</label>
        <input type="password"/>
        <label>Re Password</label>
        <input type="button" value="click me!" />
    </div>
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

html code <div id="signup"> <form id="suform" method="POST" action="roma/roma"> <p> <label>Frist Name</label> <input type="text" id="sufName"/>
This is my code : HTML <input type="textbox" id="txtComune" /> <div id="myOwnMenuComuni" style="position:absolute; top:0;
I have an Html code as such <li> <ul> <li id="6"><input type="radio" name="sell" value="sell"
This is my html code : <div id=d1 class=division> <input type=button value=one class=division> </div>
This is my code : HTML <div class="myDiv">text under link!</div> <a class="myLinkTransparent" href="#">&nbsp;</a> <a
I have this code : HTML <div class="box_video"> <object width="330" height="290" type="application/x-shockwave-flash" data="http://www.youtube.com/v/KEkR1ox_K10?version=3&amp;f=user_uploads&amp;app=youtube_gdata&amp;rel=1&amp;border=0&amp;fs=1&amp;autoplay=0" style="visibility:
I have nav code like this in my HTML file: <div id="center_links"> <ul> <li><a
I have this html code: <div class=action> some_text <a class=delete_action name=q1>some</a> </div> <div class=action>
Let's say I have the following HTML code <div id="outer"> <div id="inner">Hello World</div> </div>
I have this code : HTML <div class="draggable_main_container"> <div class="draggable_container"> <div class="draggable"> <div class="minus">

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.