title: Center a form using css
body: <p>I am trying center <strong>(to middle of the page)</strong> a html form using css.</p>
  
  <p>I already read other member's somewhat similar questions.
  But, I cannot figure this out</p>
  
  <p>This is the HTML form:</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="styles/form_style.css"&gt;
      &lt;title&gt;My Form&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form   action="#"&gt;
            &lt;label for="name"&gt;Your Name:&lt;/label&gt;
            &lt;input type="text" name="name" id="name" /&gt;&lt;br /&gt;
  
            &lt;label for="email"&gt;Your Email:&lt;/label&gt;
            &lt;input type="text" name="email" id="email" /&gt;&lt;br /&gt;
  
            &lt;input type="checkbox" name="subscribe" id="subscribe" /&gt;
            &lt;label for="subscribe" class="check"&gt;Subscribe&lt;/label&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and this is the CSS:</p>
  
  <pre><code>&lt;style&gt;
  form{
    width: 700px ;
    margin-left: 0 auto;
  }
  label { 
      text-align:right; 
      width:100px; 
  }
  input { 
      margin-left: 10px; 
  }
  label.check, label.radio { 
      text-align:left; 
  }
  &lt;/style&gt;
  </code></pre>
  
  <p>I tried quite some time.
  But still I could not center the form.
  Any guidence?
  Thanks</p>