Log in

View Full Version : <form></form> adds line(s) below



Elbee
09-02-2010, 01:01 PM
Hello,

Is there a way to keep the <form> from adding a line below?

Thanks for your help, Elbee

coothead
09-02-2010, 03:23 PM
Hi there Elbee,

IE6 and IE7 appear to give the form element a default 20px top and bottom margin.
The other browsers that I tested - ( Firefox, Opera, Safari and IE8 ) - do not.

You may find it helpful to set all elements' default margin and padding values to zero in your style sheet by adding this...


* {
padding:0;
margin:0;
}

...and then adding your own values when required.
Otherwise just add this...


form {
margin:0;
}

coothead