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 9 of 19 pages « First < 7 8 9 10 11 > Last »
One question regarding the CSS:-
In the rule for .cssform p you have
.cssform p{
height: 1%;
}
Forgive me but a lot of the article on the 3-pixel bug talks about the Holly Hack which uses height:1% and some selector shennanigans to apply it only to IE but you're applying it to all browsers?
Why doesn't Firefox, et. al. crop the content of paragraphs at 1% height? Firefox seems to expand the paragraphs to match the content even though you're explicitly setting a height?
I thought only IE (before 7) did this and it was not correct in terms of the W3C spec as the paragraph shouldn't auto-expand?
Any clarification on this much appreciated.




