Stephen Poley <sb************ ******@xs4all.n l> wrote in message news:<4f******* *************** **********@4ax. com>...
A representative of the other half will be along shortly to tell you how
you can do it without tables anyway. ;-)
I do hope so! I was about to ask the same question when this thread
was started. I know the issue has been discussed before, but the only
real solution I could find was to use a table.
If you just take the minimum amount of markup:
<form>
<label for="foo">Your foo:</label><input id="foo" name="foo" ... >
<label for="bar">Your bar:</label><input id="foo" name="foo" ... >
</form>
you could set display:block for the labels, give them a fixed width
(in em of course) and position them either with float:left or with
position: absolute in combination with an appropriate margin for the
rest of the form.
The problem is: Mozilla and Netscape 7 (and possibly other browsers)
don't understand this and don't display the labels at all :( You'll
have to hide these rules from them (how?) or resort to using a table.
<academic>
I think it's not unreasonable to consider label/input pairs to be a
table, but it would be nicer and simpler if you didn't have to use
that roundabout way. To put the question the other way: what does
marking this up as a table actually add in terms of semantics/logic?\
</academic>
Garmt de Vries.