Forum Moderators: coopster

Message Too Old, No Replies

how to adjust a login form position?

how to adjust a login form position?

         

xbl01234

10:40 am on Dec 6, 2006 (gmt 0)

10+ Year Member



Hello;

I got a code for user login from <url>http://evolt.org/php_login_script_with_remember_me_feature#authorbio</url>

but i could not adjust the position of login form to center of page, could you help, please. Thanks.

i have tried the following to adjust the position of the login form, but i failed for it.

the following code from displaylogin() of the login.php, and i add the center between the form, but it does not work.
<code>
<h1>Login</h1>
<center> //***************** i add the center between form
<form action="" method="post">
<table align="left" border="0" cellspacing="0" cellpadding="3">
<tr><td>Username:</td><td><input type="text" name="user" maxlength="30"></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass" maxlength="30"></td></tr>
<tr><td colspan="2" align="left"><input type="checkbox" name="remember">
<font size="2">Remember me next time</td></tr>
<tr><td colspan="2" align="right"><input type="submit" name="sublogin" value="Login"></td></tr>
<tr><td colspan="2" align="left"><a href="register.php">Join</a></td></tr>
</table>
</form>
</center>
</code>

omoutop

10:54 am on Dec 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



although not a php question....

change the:
<table align="left" border="0" cellspacing="0" cellpadding="3">

into
<table align="center" border="0" cellspacing="0" cellpadding="3">

Id this doens't work, put align="center" into the <td> that holds the form.

Hope this helps

xbl01234

11:13 am on Dec 6, 2006 (gmt 0)

10+ Year Member



Thanks a lot, it works now.