/    Sign up×
Community /Pin to ProfileBookmark

Resizing a form ??

Hi,
How can I center a form and more importantly control the size of the form.
Thanks for any help,
Sean

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@Rossario123Sep 09.2006 — <i>
</i>form{height:#px;width:#px;display:block;}


to center a form

<i>
</i>form{margin:0 auto;}
Copy linkTweet thisAlerts:
@ray326Sep 09.2006 — A form is a block element. All you need are the width and margin.
Copy linkTweet thisAlerts:
@KorSep 09.2006 — A form is a block element. All you need are the width and margin.[/QUOTE]
I am not sure, but I guess that happends only for IE. A display:block woun't hurt, but give it margins 0.
Copy linkTweet thisAlerts:
@ray326Sep 11.2006 — but I guess that happends only for IE[/QUOTE]Define "that".
Copy linkTweet thisAlerts:
@KorSep 11.2006 — <form>

<table>

...

</table>

</form>

leaves an unwanted space around the table, but only in IE, as like only IE considers the [B]form[/B] 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 ).
×

Success!

Help @seh1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...