Luigi said:
Should a form be made with tables or with CSS?
Those are 2 questions.
1. Should a form be marked up with tabular elements?
Some say yes: each input has a relation to a label, so each row
contains to td elements, one for label, the other for the associated
input.
That's viable, but it precludes the use of form markup such as
fieldset. So I say do not mark up form elements with tabular elements.
Use only the form markup, with div elements as needed. You could, for
example, mark up the labels with the <label> element and put each
<label> and its associated <input>, <textarea>, or other form element
in a div.
Here's what I use for contact forms:
<FORM ACTION="formmail.pl" METHOD="POST">
<DIV CLASS="formelement">
<LABEL FOR="yourRealName">name</LABEL>
<INPUT TYPE="text" NAME="realname" id="yourRealName">
</DIV>
<DIV CLASS="formelement">
<LABEL FOR="yourEmailAddress">email</LABEL>
<INPUT TYPE="text" NAME="email" id="yourEmailAddress">
</DIV>
<!-- etc. -->
</FORM>
2. How should form layout be accomplished?
Same as with anything else: use css.
may-be you can indicate some references (tutorials or W3 pages)
which help me redesign the page
http://www.italymap.dk/sv/formular.html
in Html 4.01 strict and CSS.
Using the markup that I suggested above, the basic idea is quite
simple: define a width for the <label> and float left.
LABEL {
width: 10.25em;
float: left;
clear: left;
margin-right: .4em;
text-align: right;
}
Examples of this technique:
http://www.tsmchughs.com/contact/
http://www.julietremblay.com/site/contact.html
[16 additional sig lines snipped.]
Your sig delimeter does not work. It should be "-- " (note the space
after the double hyphen). Also, could you trim the sig a bit? Or at
least trim the blank lines?