Thread: form position
View Single Post
Old 12-18-2018, 01:29 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,214
Default

well problem is i would not use tables. i have made a page with a form for you so you can use the styles, and the form itself and change the styles to suit yourself.
Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
body {
color: #000;
}
body {
background-color: #FFF;

}
#content{ width:100%; position:relative;}
#form{ width:300px; height:300px; border:#666 solid ; margin-left:auto; margin-right:auto;position:relative;}
input{ float:left; width:90px; }
label{float:left; width:70px;clear:left;}
.button{ clear:both;background: #0F0; width:100px; height:40px; margin-left:90px;}

</style>

</head>

<body>
<div id="content">
<form id="form"  name="form" method="POST" action="<?php echo $loginFormAction; ?>">
    <h2>LOGIN</h2>
      <label >Username</label>      
      <input type="text" name="username" id="username">
      
      <label >password</label>
      <input type="text" name="password" id="password">
      
      <input class="button" type="submit" name="submit" id="submit" value="Submit">
</form>
</div>

</body>
</html>
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote