Jump to content

Recommended Posts

Does anyone have good ideas, or references on how to lay out forms nicely.

Preferably forms that are using CSS Stylesheets?

Currently i lay out all my forms like this:
[code]
<table>
  <tr><td>form id</td><td><input></input><td>Error/Info messages here </td></tr>
</table>
[/code]

I apply CSS styles all over the table, but it still just doesn't look nice. Are there good references, or can anyone suggest to me a better approach. I was kinda looking to blow away as many tables as i can.

Thanks in advance!

Chris
Link to comment
https://forums.phpfreaks.com/topic/13028-form-layouts/
Share on other sites

Learn the purpose for the html entities FIELDSET (logical arrangment of related fields) and LEGEND. Use the LABEL attribute for input fields.

Avoid tables for anything except tabular data (which 99% of forms are not).

Accessibility is a key consideration with forms.

An excellent article is [a href=\"http://www.alistapart.com/articles/prettyaccessibleforms\" target=\"_blank\"]http://www.alistapart.com/articles/prettyaccessibleforms[/a]
Link to comment
https://forums.phpfreaks.com/topic/13028-form-layouts/#findComment-50105
Share on other sites

[!--quoteo(post=388521:date=Jun 27 2006, 10:44 AM:name=AndyB)--][div class=\'quotetop\']QUOTE(AndyB @ Jun 27 2006, 10:44 AM) [snapback]388521[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Learn the purpose for the html entities FIELDSET (logical arrangment of related fields) and LEGEND. Use the LABEL attribute for input fields.

Avoid tables for anything except tabular data (which 99% of forms are not).

Accessibility is a key consideration with forms.

An excellent article is [a href=\"http://www.alistapart.com/articles/prettyaccessibleforms\" target=\"_blank\"]http://www.alistapart.com/articles/prettyaccessibleforms[/a]
[/quote]

This is 100% exactly what i was looking for!
thank you!

Chris
Link to comment
https://forums.phpfreaks.com/topic/13028-form-layouts/#findComment-50111
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.