Jump to content

Alignment of Labels and input fields


Nathan
 Share

Recommended Posts

  • Administrators

What's the best way to align text and a input field.  With the below code everything works correctly, but the alignment of the text and the actual input fields are all over the place.

You can see the example here:
http://jsfiddle.net/gallitin/nsPdB/

How can I make them all align evenly the best way?

Link to comment
Share on other sites

  • 5 weeks later...

That's basically what I was going to suggest. It's not just about presentation, but also structure and accessibility. Here is a great rundown on best practices when creating HTML/CSS forms.

 

http://net.tutsplus.com/tutorials/html-css-techniques/20-html-forms-best-practices-for-beginners/

 

There is also a Javascript/CSS library called Formalize that you might want to check out. It helps ensure your forms look consistent across multiple browsers. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...