How can I set the width of the form?
Javier
Um ... just like for any other element?
<form style="width: 500px">
(or equivalent setting in CSS class, which is cleaner)
this, however, only works if the form is not set to display: inline. In this case, you cannot specify the width.
display: inline
In the same way, you give the width to any other block element.
You use the width property and selector that matches the element.
eg.
form { width: 20em; }
, CSS:
form { width: 120px; }
<fieldset>:
<fieldset>
<form> <fieldset> name: <input name="realname"><BR> email: <input name="email"> </fieldset> </form> fieldset { width: 120px; }
, .
<form style="width: 100px;"> </form>
in css add
.form { width:500px; }
and then in your html add it as a class to your form. like this form class = "
You will have clean markup, please avoid inline styles.