|
Posted by Jukka K. Korpela on 03/13/06 23:07
gerg <noemail@noemail.com> wrote:
> I have a form in which I want all the form elements to be in a strait
> line IE:
>
> Username: <input box> Password: <input box> <submit button>
Stop wanting that. Such a layout reduces accessibility. Put one field,
together with its label, on one line.
> However apon validation it says that I can't have textual elements in a
> form without a wrapper of some sort, <p> or <div>
Yes, if your document purports to use syntax that requires it.
> however apon adding
> these elements around the text I can no longer keep all the elements in
> a strait line.
Yes you can. You don't put each element in a block of its own. That would
actually be against the idea of block. You can wrap all the stuff inside a
single <div> or, more reasonably, use
<div>Username: <input ...></div>
<div>Password: <input ...></div>
<div>submit button</div>
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
[Back to original message]
|