Click to See Complete Forum and Search --> : Resizing a form ??


seh1
09-09-2006, 10:18 AM
Hi,
How can I center a form and more importantly control the size of the form.
Thanks for any help,
Sean

Rossario123
09-09-2006, 11:22 AM
form{height:#px;width:#px;display:block;}


to center a form


form{margin:0 auto;}

ray326
09-09-2006, 11:37 AM
A form is a block element. All you need are the width and margin.

Kor
09-09-2006, 12:39 PM
A form is a block element. All you need are the width and margin.
I am not sure, but I guess that happends only for IE. A display:block woun't hurt, but give it margins 0.

ray326
09-10-2006, 09:52 PM
but I guess that happends only for IEDefine "that".

Kor
09-10-2006, 11:55 PM
<form>
<table>
...
</table>
</form>

leaves an unwanted space around the table, but only in IE, as like only IE considers the form as a block-level element. In design/development it is quite well known this problem, so that, to avoid it, usually the form should get a display:inline (or margins 0 ).