...

View Full Version : killing padding around forms



redhead
12-14-2002, 10:34 AM
hi

im trying to get rid of the padding around <form> tags (in IE at least)... can anyone help?

ive tryed:

form {
padding: 0px;
border: 0px;
}

but it doesnt seem to do anything...

if anyone can help that would be grand :thumbsup:

redhead
12-14-2002, 11:10 AM
whoops... my bad

for future referance that should be:

form {
padding: 0px;
margin: 0px;
}

its fine now... thanks if youve been looking

krycek
12-14-2002, 11:20 AM
what you have put should work just fine :)

Are you sure it isn't another element...? Such as, what is the form contained in, has that element got margins and padding set? (e.g. a div, or even just the document body). And, what elements are inside the form...? Are they creating too much space?

Try setting a background color on your form so you can see exactly how big it is - that may give you a clue :)

::] krycek [::

cg9com
12-15-2002, 04:17 AM
i think redhead figured it out there ;)

krycek
12-15-2002, 04:30 AM
lol, did you look at the posting times, cg9com? :D

::] krycek [::



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum