Jump to content

Gabs777

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Gabs777's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. label, input{ float:left;}label{ clear:left;} i don't recommend this technique to brginners.
  2. close all the input field like this <input type="text" name="" /> Just ignore the others it's valide and it will not create any problem for you. Validator have their own standard and i have my own standard too
  3. It may look a bit longer with css. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Form</title> <style type="text/css"> .main{ margin-left:auto; margin-right:auto; width:500px; height:150px; } .fields { width:170px; border:solid #CCCCCC 1px; } .button { width:80px; background-color:#FFFFFF; border:none; display:block; float:right; color:#0066CC; margin-top:30px; } .button:hover { color:#FF3300; } .legend { font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#FF6600; } fieldset { width:500px; } </style> </head> <body> <div class="main"> <fieldset> <legend class="legend">Login Details</legend> <form action="formProcess.php" method="post"> <label style="font-family:Arial, Helvetica, sans-serif; font-size:12px;">Username : <input type="text" name="txtUsername" class="fields" /></label> <label style="font-family:Arial, Helvetica, sans-serif; font-size:12px; margin-left:10px;">Password : <input type="password" name="txtPassword" class="fields" /></label> <input type="submit" value="Login" class="button"> </form> </fieldset> </div> </body> </html> copy and save it as .html file and check.
  4. You can use Table and Div layout for that. eg <div> <form action="formProcessor.php" method="post"> Name : <input type="text" name="txtUsername" /> <br /> Password : <input type="password" name="txtPassword" /><br /> <input type="button" value="submit"> <input type="reset" value="reset"> </form> </div> or <form action="formProcessor.php" method="post"> <table width="500" border="0" cellpadding="2" cellspacing="2" align="center"> <tr> <td>Name</td> <td><input type="text" name="txtUsername" /> </td> </tr> <tr> <td>Password</td> <td><input type="password" name="txtPassword" /> </td> </tr> </table> </form> Is this what you are looking for ? Or else make your question clear or send your code and tell what you want to do.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.