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

  • Home
  • SEARCH
  • 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 3216028
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:14:47+00:00 2026-05-17T15:14:47+00:00

I want to create a data-entry form like the following: Name: [ Name textbox

  • 0

I want to create a data-entry form like the following:

Name:    [ Name textbox ]
Age:     [ Age textbox  ]
label n: [ textbox n    ]

Where the labels left-align, and the textboxes left-align. I know I can do this in a table element, but I’m also aware that “tables should only be for tabular data”. While I part agree/disagree with that statement – I’d like to know whether my desired layout could/should be considered “tabular data”, and what an alternative layout would be to produce the same results without dozens of lines of complicated cross-browser CSS.

I don’t do web development much at the moment (strictly WinForms for some time now when I do UI work), so I appreciate there may be an elegant solution. Possibly involving an unordered list with the bullet points turned off and a bit off label->field y position offsetting, perhaps?

  • 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-17T15:14:48+00:00Added an answer on May 17, 2026 at 3:14 pm

    Unordered lists with label elements should be the way to go here. The markup I would use should look something like:

    <form id="person" method="post" action="process.php">
        <ul>
            <li><label for="name">Name: </label><input id="name" name="name" type="text" /></li>
            <li><label for="age">Age: </label><input id="age" name="age" type="text" /></li>
            <li><label for="n">N: </label><input id="n" name="n" type="text" /></li>
        </ul>
    </form>
    

    And this CSS if to get something similar to want you asked for:

    #person ul {
        list-style: none;
    }
    
    #person li {
        padding: 5px 10px;
    }
    
    #person li label {
        float: left;
        width: 50px;
        margin-top: 3px;
    }
    
    #person li input[type="text"] {
        border: 1px solid #999;
        padding: 3px;
        width: 180px;
    }
    

    See: http://jsfiddle.net/tZhUQ/1 , which contains some more interesting stuff you can try.

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

Sidebar

Related Questions

I want to create light object data-package to pass between client and server applications.
I want to create a similar behavior to the data reader class but for
I have some kind of test data and want to create a unit test
I have a situation where I want to create a signature of a data
Data table structure is: id1,id2,id3,id4,... (some other fields). I want to create summary query
I'm planning a WPF application which will be able to create dynamic data entry
I want create a drop shadow around the canvas component in flex. Technically speaking
I want to create a Java application bundle for Mac without using Mac. According
I want to create a client side mail creator web page. I know the
I want to create a function that performs a function passed by parameter on

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.