CSS Library: Form CSS: Here
CSS Tableless Form
Author: Dynamic Drive
This is a tableless CSS form which you can use as a template for implementing your own lightweight form. It uses a combination of float and negative margins to create a two column layout for the form. One issue with the form is IE6's three pixel jog bug, which is addressed in the demo manually, by offsetting the jogged checkboxes with an additional margin. You may wish to implement a more thorough fix, though it will increase the size of the code. IE7 does not suffer from the 3 pixel bug.
Demo:
The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 5 of 19 pages « First < 3 4 5 6 7 > Last »
How do we get this form to be submitted to your e-mail address so that whatever someone types in there is sent to your e-mail?
My question relates to the labelling of the checkboxes and radio buttons - these are labelled as for "comments" is this correct or just a workaround to get the labels aligned correctly?
It seems to work fine, except when I change the input type from "text" to "password". Nothing else changes except text and password but the second field groups itself with the first label for some reason.
It doesn't happen if I switch it back to a text field. Anyone have any ideas.
SUBMIT button sends the form data to an e-mail account and when this has been clicked the page gets redirected to a thank you page.
Hope someone can help!
Thanks, John
While everyone says css is the way to go... the guys using tables finished the required forms long before the css guys AND all file sizes were smaller.
So even though i am learning css, i am yet to be convinced its an actual improvement.
As for the seperate code from style argument - this was a good idea when we all had slow connections. Superfast internet will soon be in everyones reach.
And i have yet to see any css website that regularly changes the style without having to fiddle with the code.
how do i get this form to send the feedback in a email to me?
Here's what I have:
<form id="myform" class="cssform" action="mailto:martial_arts@yahoo.com">
Name:
<INPUT NAME="username" size="30">
E-Mail Address:
<INPUT Name="usermail" size="30"><BR>
Telephone Number:
<INPUT Name="usertelephone" size="30">
<H3>Make any requests you'd like below:</H3>
<textarea NAME="comment" ROWS=6 COLS=60></textarea>
<INPUT TYPE=submit VALUE="Send it!">
<INPUT TYPE=reset VALUE="Start over">
</FORM>

