Layout form with CSS : form : Form Style HTML CSS TUTORIALS


HTML CSS TUTORIALS » Form Style » form »

 

Layout form with CSS


 
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  <style type="text/css">
input {
        width: 175px;
        margin-bottom: 10px;
}

label {
        display: block;
        text-align: right;
        float: left;
        width: 75px;
        padding-right: 20px;
}

.checkbox {
  width:1em;
}

br {
   clear: left;
}

.buttonSubmit {
  width: 75px;
  margin-left: 95px;
}
  </style>
</head>

<body>


<form action="" method="post">

  <label for="uname">User Name</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="pname">Password</label>
  <input type="text" name="uname" id="uname" value="" /><br />

  <label for="recall">Remember you?</label>
  <input type="checkbox" name="recall" id="recall" class="checkbox" />
  <br />

  <input type="submit" name="Submit" value="Submit" class="buttonSubmit" />


</form>

</body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Form Style
» form