W3C home > Mailing lists > Public > www-validator@w3.org > November 2006

[VE][65] Div and Form

From: Loc <chaoticsoftware.bot@gmail.com>
Date: Sat, 18 Nov 2006 22:22:24 +0100
Message-ID: <e9208d0c0611181322v470f0315w29db087f44580d42@mail.gmail.com>
To: www-validator@w3.org
Hi,

I have a form in a div:

css:

#userarea
{
position:absolute;
width: 739px;
height: 81px;
margin: 234px auto auto 28px;
z-index: 2;
}

xhtml:

<div id="userarea">

<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Username: <input type="text" name="user" />
Password: <input type="password" name="pass" />

<input type="hidden" name="loggedon" value="Yes" />
<input type="hidden" name="whatuserIDisit" value="<?php echo "$UID"; ?>" />

<input type="submit" name="submit" value="Log In" />

</form>

</div>

The w3 validator says that these form elements are not allowed in a div. But
I cannot have the form positioned the right way without it being in a div or
is there another way? How can I position it and have a w3 valid site?

-- 

Regards Loc
Received on Monday, 20 November 2006 00:36:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:14:08 UTC