[VE][65] Div and Form

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